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

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

public class MeanFeature<T extends Enum<T> & Dimensions>
extends AbstractFeature

Implementation of a mean feature.


Field Summary
private  MeanCalculator<T> calculator
          The calculator for the mean.
 
Fields inherited from class org.android.activityminer.logic.features.AbstractFeature
featureType
 
Constructor Summary
MeanFeature(FeatureTypes featureType, MeanCalculator<T> calculator)
          Constructor
 
Method Summary
 Double getFeatureValue()
          Getter for the feature value
 MeanCalculator<T> getMeanCalculator()
          Getter for the mean calculator
 
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 MeanCalculator<T extends Enum<T> & Dimensions> calculator
The calculator for the mean.

Constructor Detail

MeanFeature

public MeanFeature(FeatureTypes featureType,
                   MeanCalculator<T> calculator)
Constructor

Parameters:
featureType - the feature type
calculator - the mean calculator
Method Detail

getFeatureValue

public Double getFeatureValue()
Description copied from interface: Feature
Getter for the feature value

Returns:
the feature value

getMeanCalculator

public final MeanCalculator<T> getMeanCalculator()
Getter for the mean calculator

Returns:
the mean calculator