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 RssiHistogramhistogram-
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 voidmap(Sample<T> value)java.lang.Doublereduce()voidupdate()-
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:
mapin interfaceAggregate<T extends DoubleValue>- Overrides:
mapin classSmoothedLinearModel<T extends DoubleValue>
-
reduce
@Nullable public java.lang.Double reduce()
- Specified by:
reducein interfaceAggregate<T extends DoubleValue>- Overrides:
reducein classSmoothedLinearModel<T extends DoubleValue>
-
-