Class SelfCalibratedModel<T extends DoubleValue>
- java.lang.Object
-
- io.heraldprox.herald.sensor.analysis.algorithms.distance.SmoothedLinearModel<T>
-
- io.heraldprox.herald.sensor.analysis.algorithms.distance.SelfCalibratedModel<T>
-
- All Implemented Interfaces:
Aggregate<T>
public class SelfCalibratedModel<T extends DoubleValue> extends SmoothedLinearModel<T>
-
-
Field Summary
Fields Modifier and Type Field Description RssiHistogram
histogram
-
Fields inherited from class io.heraldprox.herald.sensor.analysis.algorithms.distance.SmoothedLinearModel
coefficient, intercept
-
-
Constructor Summary
Constructors Constructor Description SelfCalibratedModel(Distance min, Distance mean, TimeInterval withinMin, TimeInterval withinMean, TextFile textFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
map(Sample<T> value)
java.lang.Double
reduce()
void
update()
-
Methods inherited from class io.heraldprox.herald.sensor.analysis.algorithms.distance.SmoothedLinearModel
beginRun, medianOfRssi, reset, runs, setParameters
-
-
-
-
Field Detail
-
histogram
@NonNull public final RssiHistogram histogram
-
-
Constructor Detail
-
SelfCalibratedModel
public SelfCalibratedModel(@NonNull Distance min, @NonNull Distance mean, @NonNull TimeInterval withinMin, @NonNull TimeInterval withinMean, @Nullable TextFile textFile)
-
-
Method Detail
-
update
public void update()
-
map
public void map(@NonNull Sample<T> value)
- Specified by:
map
in interfaceAggregate<T extends DoubleValue>
- Overrides:
map
in classSmoothedLinearModel<T extends DoubleValue>
-
reduce
@Nullable public java.lang.Double reduce()
- Specified by:
reduce
in interfaceAggregate<T extends DoubleValue>
- Overrides:
reduce
in classSmoothedLinearModel<T extends DoubleValue>
-
-