Ewma class

Exponentially Weighted Moving Average for smoothing time series data.

Constructors

Ewma.new({double alpha = 0.12})
Creates an EWMA with optional smoothing factor.

Properties

alpha double
Smoothing factor (0-1). Higher values respond faster to changes.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value double
Current averaged value.
no setter

Methods

add(double x) double
Adds a new value and returns the updated average.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited