Class SmoothedLinearModel<T extends DoubleValue>
- java.lang.Object
-
- io.heraldprox.herald.sensor.analysis.algorithms.distance.SmoothedLinearModel<T>
-
- All Implemented Interfaces:
Aggregate<T>
- Direct Known Subclasses:
SelfCalibratedModel
public class SmoothedLinearModel<T extends DoubleValue> extends java.lang.Object implements Aggregate<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected double
coefficient
protected double
intercept
-
Constructor Summary
Constructors Constructor Description SmoothedLinearModel()
SmoothedLinearModel(double intercept, double coefficient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beginRun(int thisRun)
void
map(Sample<T> value)
java.lang.Double
medianOfRssi()
java.lang.Double
reduce()
void
reset()
int
runs()
void
setParameters(double intercept, double coefficient)
-
-
-
Method Detail
-
setParameters
public void setParameters(double intercept, double coefficient)
-
runs
public int runs()
- Specified by:
runs
in interfaceAggregate<T extends DoubleValue>
-
beginRun
public void beginRun(int thisRun)
- Specified by:
beginRun
in interfaceAggregate<T extends DoubleValue>
-
map
public void map(@NonNull Sample<T> value)
- Specified by:
map
in interfaceAggregate<T extends DoubleValue>
-
reduce
@Nullable public java.lang.Double reduce()
- Specified by:
reduce
in interfaceAggregate<T extends DoubleValue>
-
reset
public void reset()
- Specified by:
reset
in interfaceAggregate<T extends DoubleValue>
-
medianOfRssi
@Nullable public java.lang.Double medianOfRssi()
-
-