|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object marf.Storage.TrainingSample marf.Storage.Cluster
public class Cluster
Cluster contains a cluster information per subject.
$Id: Cluster.java,v 1.9 2005/06/16 19:58:54 mokhov Exp $
Field Summary |
---|
Fields inherited from class marf.Storage.TrainingSample |
---|
adDataVector, iSubjectID, oFilenames |
Constructor Summary | |
---|---|
Cluster()
|
Method Summary | |
---|---|
boolean |
addFeatureVector(double[] padFeatureVector,
java.lang.String pstrFilename,
int piSubjectID)
Adds new feature vector to the mean and recomputes the mean. |
boolean |
addFilename(java.lang.String pstrFilename)
Adds a filename to the training set. |
boolean |
existsFilename(java.lang.String pstrFilename)
Checks existance of the file in the training set. |
static java.lang.String |
getMARFSourceCodeRevision()
Returns source code revision information. |
int |
getMeanCount()
Retrieves current mean count. |
double[] |
getMeanVector()
Retrieves the mean vector. |
int |
incMeanCount()
Increases mean count by one. |
void |
setMeanVector(double[] padMeanVector)
Sets new mean vector. |
Methods inherited from class marf.Storage.TrainingSample |
---|
dumpCSV, getDataVector, getSubjectID, restoreCSV, setDataVector, setFilename, setSubjectID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Cluster()
Method Detail |
---|
public final boolean addFilename(java.lang.String pstrFilename)
pstrFilename
- filename to add
false
if the filename is already there; true
otherwiseexistsFilename(String)
public final boolean existsFilename(java.lang.String pstrFilename)
pstrFilename
- filename to check
true
if the filename is there; false
if notpublic final int getMeanCount()
public final int incMeanCount()
public final double[] getMeanVector()
public final void setMeanVector(double[] padMeanVector)
padMeanVector
- double array representing the mean vectorpublic final boolean addFeatureVector(double[] padFeatureVector, java.lang.String pstrFilename, int piSubjectID)
padFeatureVector
- vector to addpstrFilename
- filename to addpiSubjectID
- for which subject that vector is
true
if the vector was added; false
otherwisepublic static java.lang.String getMARFSourceCodeRevision()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |