Class Surge
Notices a step change between successive readings.
public sealed class Surge : IDisposable
- Inheritance
-
Surge
- Implements
- Inherited Members
Remarks
A sudden jump usually means an event rather than drift: a burst pipe, a door opening, a load switching on.
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Falling(float)
Creates a detector for falls of at least the given size.
public static Surge Falling(float limit)
Parameters
limitfloatThe smallest fall worth reporting.
Returns
- Surge
The detector.
Rising(float)
Creates a detector for rises of at least the given size.
public static Surge Rising(float limit)
Parameters
limitfloatThe smallest rise worth reporting.
Returns
- Surge
The detector.
Update(float)
Feeds a value in and reports a qualifying step.
public float? Update(float value)
Parameters
valuefloatThe latest reading.
Returns
- float?
The size of the step, or
nullwhen this reading did not complete one.