Table of Contents

Class Surge

Namespace
Pamoja.Kit
Assembly
Pamoja.Kit.dll

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

limit float

The 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

limit float

The 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

value float

The latest reading.

Returns

float?

The size of the step, or null when this reading did not complete one.