DYO: Implementation of Ergodic example


Q:  How would the Ergodic formula be implemented in ESPL?

numerator := ExpAverage(ExpAverage(Bar(eNet,z),7),21);
denominator := ExpAverage(ExpAverage(ABS(Bar(eNet,z)),7),21);

A:  Just do it using a DYO which is much simpler to implement.

Here is a comparison of the above DYO with the Ergodic study in cyan.

Edit Line B Number parameter to have the Momentum be every other bar with a 2, and every 3rd bar with a 3, as discussed previously where you are trying to emulate ergodic for a V100 and V150 on a V50 host.

To do the ExpAverage(ExpAverage in ESPL will involve using Arrays to hold the intermediate average, and that gets messy to accomplish.  It is easy to implement using the DYO as shown above.

Though the DYO shows how the Ergodic study could be implemented, use the built in Ergodic study from the Study drop down list in Ensign because the built in study calculates faster and offers more display options via its study property form.


Last modified 8/26/09 2:14 PM