Table of Contents

Class Trend

Namespace
Pamoja.Kit
Assembly
Pamoja.Kit.dll

Fits a line through recent readings, so a slow drift shows before it matters.

public sealed class Trend : IDisposable
Inheritance
Trend
Implements
Inherited Members

Constructors

Trend()

Creates an empty trend estimator.

public Trend()

Exceptions

PamojaException

The native estimator could not be created.

Properties

Slope

The fitted slope in units per reading, or null without enough readings. A positive slope is a rising signal.

public float? Slope { get; }

Property Value

float?

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Push(float)

Adds a reading.

public void Push(float reading)

Parameters

reading float

The reading to add.