annotool.select
Interface FeatureSelector


public interface FeatureSelector

FeatureSelector selects features that are accurate and of interest


Method Summary
 int[] getIndices()
          Returns the indices of the selected features (an index is between 0 and one less than the number of features).
 float[][] selectFeatures(float[][] data, int[] targets)
          Stores features from data and store any relevant values such as the dimensions of data and targets.
 float[][] selectFeaturesGivenIndices(float[][] data, int[] indices)
          Selects features using indices and returns the selected features.
 void setParameters(java.util.HashMap<java.lang.String,java.lang.String> para)
          Sets algorithm parameters from para
 

Method Detail

setParameters

void setParameters(java.util.HashMap<java.lang.String,java.lang.String> para)
Sets algorithm parameters from para

Parameters:
para - Each element of the hashmap holds a parameter name for its key and a its value is that of the parameter. The parameters should be the same as those in the algorithms.xml file.

selectFeatures

float[][] selectFeatures(float[][] data,
                         int[] targets)
Stores features from data and store any relevant values such as the dimensions of data and targets.

Parameters:
data - Two-dimensional array of extracted image data
targets - Array of the targets for the image
Returns:
Two-dimensional array of features that are selected

getIndices

int[] getIndices()
Returns the indices of the selected features (an index is between 0 and one less than the number of features).

Returns:
The indices of the selected features.

selectFeaturesGivenIndices

float[][] selectFeaturesGivenIndices(float[][] data,
                                     int[] indices)
Selects features using indices and returns the selected features.

Parameters:
data - Two-dimensional array of extracted image data
indices - Array of indices to the data columns
Returns:
Two-dimensional array of features that are selected