public class BasicTrainingData extends Object implements LabelledDataProvider
| Constructor and Description | 
|---|
| BasicTrainingData(List<SummedSqTiltAreaTable> positive,
                 List<SummedSqTiltAreaTable> negative,
                 List<HaarFeature> features) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean[] | getClasses() | 
| HaarFeature | getFeature(int dimension) | 
| float[] | getFeatureResponse(int dimension)Get the response for all items for a specific dimension of each feature
 vector | 
| float[] | getInstanceFeature(int idx)Get the feature vector for a specific instance | 
| int[] | getSortedResponseIndices(int d)Get the indices of the responses corresponding to a specific dimension
 for all items ordered such that the responses are ascending. | 
| int | numDimensions() | 
| int | numInstances() | 
public BasicTrainingData(List<SummedSqTiltAreaTable> positive, List<SummedSqTiltAreaTable> negative, List<HaarFeature> features)
public float[] getFeatureResponse(int dimension)
LabelledDataProvidergetFeatureResponse in interface LabelledDataProviderdimension - the dimension to selectpublic boolean[] getClasses()
getClasses in interface LabelledDataProviderpublic int numInstances()
numInstances in interface LabelledDataProviderpublic int numDimensions()
numDimensions in interface LabelledDataProviderpublic float[] getInstanceFeature(int idx)
LabelledDataProvidergetInstanceFeature in interface LabelledDataProvideridx - the index of the instancepublic int[] getSortedResponseIndices(int d)
LabelledDataProvidergetSortedResponseIndices in interface LabelledDataProviderd - the dimension to selectpublic HaarFeature getFeature(int dimension)