|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITrainingSample
All training set beans should implement this interface.
$Id: ITrainingSample.java,v 1.2 2007/12/23 06:29:46 mokhov Exp $
Method Summary | |
---|---|
boolean |
addFeatureVector(double[] padFeatureVector,
java.lang.String pstrFilename,
int piSubjectID)
Fully equivalent to setFeatureVector(). |
boolean |
addFilename(java.lang.String pstrFilename)
|
boolean |
existsFilename(java.lang.String pstrFilename)
Checks existence of the file in the training sample. |
double[] |
getDataVector()
Retrieves the data vector. |
int |
getMeanCount()
Retrieves current mean count. |
double[] |
getMeanVector()
Retrieves the mean vector. |
double[] |
getMedianVector()
|
int |
getSubjectID()
Retrieves Subject ID of a particular training sample. |
void |
setDataVector(double[] padDataVector)
Sets new mean vector. |
boolean |
setFeatureVector(double[] padFeatureVector,
java.lang.String pstrFilename,
int piSubjectID)
|
void |
setFilename(java.lang.String pstrFilename)
Sets a filename of the training sample. |
void |
setSubjectID(int piSubjectID)
Sets new Subject ID. |
int |
size()
|
Method Detail |
---|
boolean setFeatureVector(double[] padFeatureVector, java.lang.String pstrFilename, int piSubjectID)
padFeatureVector
- pstrFilename
- piSubjectID
-
boolean addFeatureVector(double[] padFeatureVector, java.lang.String pstrFilename, int piSubjectID)
padFeatureVector
- pstrFilename
- piSubjectID
-
setFeatureVector(double[], String, int)
void setFilename(java.lang.String pstrFilename)
pstrFilename
- filename to setboolean addFilename(java.lang.String pstrFilename)
pstrFilename
-
boolean existsFilename(java.lang.String pstrFilename)
pstrFilename
- filename to check
true
if the filename is there; false
if notint getSubjectID()
double[] getDataVector()
void setSubjectID(int piSubjectID)
piSubjectID
- integer IDvoid setDataVector(double[] padDataVector)
padDataVector
- double array representing the mean vectorint getMeanCount()
double[] getMeanVector()
double[] getMedianVector()
int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |