feature_filtering
Class VarianceBasedFiltering

java.lang.Object
  extended by feature_filtering.AbstractFeatureFiltering
      extended by feature_filtering.VarianceBasedFiltering

public class VarianceBasedFiltering
extends AbstractFeatureFiltering

This class is used for variance-based filtering.

Author:
Eleftherios Spyromitros-Xioufis

Field Summary
static double[] percentiles
          Percentile values for which thresholds have been pre-calculated.
private  double threshold
          The threshold to apply, i.e. features with lower variance than will be filtered.
static double[] thresholds
          Corresponding thresholds for the percentiles above.
 
Constructor Summary
VarianceBasedFiltering(double percentage)
          Constructor
 
Method Summary
protected  java.util.ArrayList<double[]> filterInternal(java.util.ArrayList<double[]> descriptors)
          Subclasses should provide the implementation.
protected  double[][] filterInternal(double[][] descriptors)
          Subclasses should provide the implementation.
 
Methods inherited from class feature_filtering.AbstractFeatureFiltering
calculatePercentileValuesEntropy, calculatePercentileValuesVariance, entropyCalculation, filter, filter, main, varianceCalculation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

percentiles

public static double[] percentiles
Percentile values for which thresholds have been pre-calculated.


thresholds

public static double[] thresholds
Corresponding thresholds for the percentiles above.


threshold

private double threshold
The threshold to apply, i.e. features with lower variance than will be filtered.

Constructor Detail

VarianceBasedFiltering

public VarianceBasedFiltering(double percentage)
                       throws java.lang.Exception
Constructor

Parameters:
percentage -
Throws:
java.lang.Exception
Method Detail

filterInternal

protected double[][] filterInternal(double[][] descriptors)
                             throws java.lang.Exception
Description copied from class: AbstractFeatureFiltering
Subclasses should provide the implementation.

Specified by:
filterInternal in class AbstractFeatureFiltering
Returns:
the filtered features
Throws:
java.lang.Exception

filterInternal

protected java.util.ArrayList<double[]> filterInternal(java.util.ArrayList<double[]> descriptors)
                                                throws java.lang.Exception
Description copied from class: AbstractFeatureFiltering
Subclasses should provide the implementation.

Specified by:
filterInternal in class AbstractFeatureFiltering
Returns:
the filtered features
Throws:
java.lang.Exception