|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.android.activityminer.logic.features.calculators.AbstractCalculator<T,U>
org.android.activityminer.logic.features.calculators.AbstractCompositeCalculator<T,Double>
org.android.activityminer.logic.features.calculators.VarianceCalculator<T>
T
- the enumeration type for the dimensionspublic final class VarianceCalculator<T extends Enum<T> & Dimensions>
Implementation of a calculator for the variance in the values of a dimension.
Field Summary | |
---|---|
private double[] |
diffs2Mean
The value cache for the difference of single values from mean. |
private MeanCalculator<T> |
meanCalculator
The calculator providing the mean value. |
private DimensionValueCache<T> |
valueCache
The value cache. |
Fields inherited from class org.android.activityminer.logic.features.calculators.AbstractCalculator |
---|
dimension, value |
Constructor Summary | |
---|---|
VarianceCalculator(DimensionValueCache<T> valueCache,
MeanCalculator<T> meanCalculator)
Constructor |
Method Summary | |
---|---|
Double |
getCompositeValue()
Does calculate the composite value. |
double[] |
getDiffs2Mean()
Getter for the value differences to the mean of all values |
Double |
getInitialValue()
Method for value initialization. |
MeanCalculator<T> |
getMeanCalculator()
Getter for the mean calculator. |
DimensionValueCache<T> |
getValueCache()
Getter for the value cache calculator. |
Methods inherited from class org.android.activityminer.logic.features.calculators.AbstractCompositeCalculator |
---|
getValue, reset |
Methods inherited from class org.android.activityminer.logic.features.calculators.AbstractCalculator |
---|
getDimension |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final DimensionValueCache<T extends Enum<T> & Dimensions> valueCache
private double[] diffs2Mean
private final MeanCalculator<T extends Enum<T> & Dimensions> meanCalculator
Constructor Detail |
---|
public VarianceCalculator(DimensionValueCache<T> valueCache, MeanCalculator<T> meanCalculator)
valueCache
- the value cachemeanCalculator
- the mean calculatorMethod Detail |
---|
public final Double getInitialValue()
Calculator
public Double getCompositeValue()
CompositeCalculator
public double[] getDiffs2Mean()
public MeanCalculator<T> getMeanCalculator()
public DimensionValueCache<T> getValueCache()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |