org.android.activityminer.logic.features
Class PeakFrequencyFeature<T extends Enum<T> & Dimensions>
java.lang.Object
org.android.activityminer.logic.features.AbstractFeature
org.android.activityminer.logic.features.PeakFrequencyFeature<T>
- Type Parameters:
T
- the enumeration type for the dimensions
- All Implemented Interfaces:
- Feature
public final class PeakFrequencyFeature<T extends Enum<T> & Dimensions>
- extends AbstractFeature
Implementation of the peak frequency feature.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
calculator
private final FFTPeakCalculator<T extends Enum<T> & Dimensions> calculator
- The calculator .
PeakFrequencyFeature
public PeakFrequencyFeature(FeatureTypes featureType,
FFTPeakCalculator<T> calculator)
- Constructor
- Parameters:
featureType
- the feature typecalculator
- the peak frequency calculator
getFeatureValue
public final Double getFeatureValue()
- Description copied from interface:
Feature
- Getter for the feature value
- Returns:
- the feature value
getCalculator
public FFTPeakCalculator<T> getCalculator()
- Getter for the calculator
- Returns:
- the calculator