|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--marf.Storage.TrainingSet.TrainingSample
TrainingSample contains one item in the training set. Each training sample consists of the feature vector plus information describing that feature vector.
| Constructor Summary | |
TrainingSet.TrainingSample()
|
|
| Method Summary | |
boolean |
addFilename(java.lang.String pstrFilename)
A filename to the training set. |
void |
dump(java.io.BufferedWriter bw)
Write one training sample to a text file. |
boolean |
existsFilename(java.lang.String pstrFilename)
Check existance of the file in the training set. |
int |
getMeanCount()
Retrieves current mean count |
double[] |
getMeanVector()
Retrieves the mean vector |
int |
getSubjectID()
Retrieves Subject ID of a particular training sample |
int |
incMeanCount()
Increases mean count by one |
void |
restore(java.io.BufferedReader br)
Retrieve one training sample from a text file. |
void |
setMeanVector(double[] padMeanVector)
Sets new mean vector |
void |
setSubjectID(int piSubjectID)
Sets new Subject ID |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public TrainingSet.TrainingSample()
| Method Detail |
public final boolean addFilename(java.lang.String pstrFilename)
pstrFilename - filename to checktrue if the filename is there; false if notexistsFilenamepublic final boolean existsFilename(java.lang.String pstrFilename)
pstrFilename - filename to checktrue if the filename is there; false if notpublic final int getSubjectID()
public final int getMeanCount()
public final int incMeanCount()
public final double[] getMeanVector()
public final void setSubjectID(int piSubjectID)
piSubjectID - integer IDpublic final void setMeanVector(double[] padMeanVector)
padMeanVector - double array representing the mean vector
public final void dump(java.io.BufferedWriter bw)
throws java.io.IOException
bw - BufferedWriter
public final void restore(java.io.BufferedReader br)
throws java.io.IOException
br - BufferedReaderjava.io.IOException -
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||