org.android.activityminer.logic.features
Class PeakAmplitudeFeature<T extends Enum<T> & Dimensions>

Package class diagram package PeakAmplitudeFeature
java.lang.Object
  extended by org.android.activityminer.logic.features.AbstractFeature
      extended by org.android.activityminer.logic.features.PeakAmplitudeFeature<T>
Type Parameters:
T - the enumeration type for the dimensions
All Implemented Interfaces:
Feature

public final class PeakAmplitudeFeature<T extends Enum<T> & Dimensions>
extends AbstractFeature

Implementation of the amplitude of dominant (peak) frequency feature.


Field Summary
private  FFTPeakCalculator<T> calculator
          The calculator .
 
Fields inherited from class org.android.activityminer.logic.features.AbstractFeature
featureType
 
Constructor Summary
PeakAmplitudeFeature(FeatureTypes featureType, FFTPeakCalculator<T> calculator)
          Constructor
 
Method Summary
 FFTPeakCalculator<T> getCalculator()
          Getter for the calculator
 Double getFeatureValue()
          Getter for the feature value
 
Methods inherited from class org.android.activityminer.logic.features.AbstractFeature
getFeatureType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

calculator

private final FFTPeakCalculator<T extends Enum<T> & Dimensions> calculator
The calculator .

Constructor Detail

PeakAmplitudeFeature

public PeakAmplitudeFeature(FeatureTypes featureType,
                            FFTPeakCalculator<T> calculator)
Constructor

Parameters:
featureType - the feature type
calculator - the peak frequency calculator
Method Detail

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