feature_filtering
Class RandomFiltering

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

public class RandomFiltering
extends AbstractFeatureFiltering

This class is used for variance-based filtering.

Author:
Eleftherios Spyromitros-Xioufis

Field Summary
private  double percentageRetained
          The percentage of descriptors that will be randomly filtered.
 
Constructor Summary
RandomFiltering(double percentageRetained)
          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

percentageRetained

private double percentageRetained
The percentage of descriptors that will be randomly filtered.

Constructor Detail

RandomFiltering

public RandomFiltering(double percentageRetained)
                throws java.lang.Exception
Constructor

Parameters:
percentageRetained -
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