public class CachedTrainingData extends Object implements HaarTrainingData
| Constructor and Description |
|---|
CachedTrainingData(List<SummedSqTiltAreaTable> positive,
List<SummedSqTiltAreaTable> negative,
List<HaarFeature> features) |
| Modifier and Type | Method and Description |
|---|---|
boolean[] |
getClasses() |
HaarFeature |
getFeature(int dimension) |
float[] |
getInstanceFeature(int idx) |
float[] |
getResponses(int dimension) |
int[] |
getSortedIndices(int d) |
int |
numFeatures() |
int |
numInstances() |
public CachedTrainingData(List<SummedSqTiltAreaTable> positive, List<SummedSqTiltAreaTable> negative, List<HaarFeature> features)
public float[] getResponses(int dimension)
getResponses in interface HaarTrainingDatapublic boolean[] getClasses()
getClasses in interface HaarTrainingDatapublic int numInstances()
numInstances in interface HaarTrainingDatapublic int numFeatures()
numFeatures in interface HaarTrainingDatapublic float[] getInstanceFeature(int idx)
getInstanceFeature in interface HaarTrainingDatapublic int[] getSortedIndices(int d)
getSortedIndices in interface HaarTrainingDatapublic HaarFeature getFeature(int dimension)
getFeature in interface HaarTrainingData