Integrated Dynamics

Integrated Dynamics

63M Downloads

Suggestion: Add way to get difference in a variable over an amount of ticks.

white-matter opened this issue ยท 4 comments

commented

For measuring the rate at which you get items or generate power, if this is already a feature then I apologize.

commented

I've been tinkering with an idea that would enable things like this. This will probably be for next release! :-)

commented

FWIW, in my Reactor control LUA I use a "fast" slope estimation algorithm that uses fixed coefficients to estimate slope using 1 add & 1 multiply per sample & 1 divide. It's not a precise as the classic least squares algorithm, but it's very fast & the estimates are close enough to build useful logic.

My specific use is to watch the reactor & wait for delta RF/tick to stabilize, so I actually run the estimate twice -- once to get the slope, and once to get the acceleration. Once acceleration drops below 0.25% of the slope I consider it stable.

commented

Is this resolved by the Delayer?

commented

Ah yes, this was exactly the reason why I implemented that. So this issue can be closed now. Thanks for bringing it to my attention @josephcsible :-)