org.android.activityminer.logic.features
Class VarianceFeature<T extends Enum<T> & Dimensions>
java.lang.Object
org.android.activityminer.logic.features.AbstractFeature
org.android.activityminer.logic.features.VarianceFeature<T>
- Type Parameters:
T
- the enumeration type for the dimensions
- All Implemented Interfaces:
- Feature
- Direct Known Subclasses:
- StandardDeviationFeature
public class VarianceFeature<T extends Enum<T> & Dimensions>
- extends AbstractFeature
Implementation of the variance (squared standard deviation) feature, which is
an extended feature based on the mean feature value.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
calculator
private final VarianceCalculator<T extends Enum<T> & Dimensions> calculator
- The variance calculator.
VarianceFeature
public VarianceFeature(FeatureTypes featureType,
VarianceCalculator<T> calculator)
- Constructor
- Parameters:
featureType
- the feature typecalculator
- the variance calculator
getFeatureValue
public Double getFeatureValue()
- Description copied from interface:
Feature
- Getter for the feature value
- Returns:
- the feature value
getVarianceCalculator
public final VarianceCalculator<T> getVarianceCalculator()
- Getter for the variance calculator.
- Returns:
- the variance calculator