|
||||||||||
| 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.MeanCalculator<T>
T - the enumeration type for the dimensionspublic final class MeanCalculator<T extends Enum<T> & Dimensions>
Implementation of a calculator for the mean crossing rate of a sensor signal.
| Field Summary | |
|---|---|
private SensorObservationCounter<T> |
counter
The calculator providing the sample count for the mean calculation. |
private SumCalculator<T> |
sumCalculator
The calculator providing the sum for the mean calculation. |
| Fields inherited from class org.android.activityminer.logic.features.calculators.AbstractCalculator |
|---|
dimension, value |
| Constructor Summary | |
|---|---|
MeanCalculator(SumCalculator<T> sumCalculator,
SensorObservationCounter<T> counter)
Constructor |
|
| Method Summary | |
|---|---|
Double |
getCompositeValue()
Does calculate the composite value. |
SensorObservationCounter<T> |
getCounter()
Getter for the counter |
Double |
getInitialValue()
Method for value initialization. |
SumCalculator<T> |
getSumCalcualtor()
Getter for the sum 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 SumCalculator<T extends Enum<T> & Dimensions> sumCalculator
private final SensorObservationCounter<T extends Enum<T> & Dimensions> counter
| Constructor Detail |
|---|
public MeanCalculator(SumCalculator<T> sumCalculator,
SensorObservationCounter<T> counter)
sumCalculator - the calculator providing the sum for the mean calculationcounter - the calculator providing the sample count for the mean calculation| Method Detail |
|---|
public final Double getInitialValue()
Calculator
public Double getCompositeValue()
CompositeCalculator
public SumCalculator<T> getSumCalcualtor()
public SensorObservationCounter<T> getCounter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||