|
||||||||||
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 marf.Storage.FeatureSet
public class FeatureSet
FeatureSet -- Encapsulates subject's feature vectors. Additionally, can compute mean and median vectors off the present feature vectors.
$Id: FeatureSet.java,v 1.18 2008/02/17 02:26:53 mokhov Exp $
Field Summary | |
---|---|
protected java.util.Vector |
oFeatureVectors
A Vector of TrainingSamples. |
Fields inherited from class marf.Storage.TrainingSample |
---|
adDataVector, iSubjectID, oFilenames |
Constructor Summary | |
---|---|
FeatureSet()
Construct a training set object. |
Method Summary | |
---|---|
boolean |
addFeatureVector(double[] padFeatureVector,
java.lang.String pstrFilename,
int piSubjectID)
Adds new feature vector to the mean and recomputes the mean. |
java.lang.Object |
clone()
Implements Cloneable interface for the FeatureSet object. |
void |
dumpCSV()
Dump the current training set to disk. |
java.util.Vector |
getFeatureVectors()
Retrieves training samples. |
static java.lang.String |
getMARFSourceCodeRevision()
Returns source code revision information. |
int |
getMeanCount()
Retrieves current mean count. |
double[] |
getMeanVector()
Simply retrieves the data vector. |
double[] |
getMedianVector()
Simply retrieves the data vector. |
void |
restoreCSV()
Retrieve the current training set from disk. |
int |
size()
Sizes of the feature vectors set. |
java.lang.String |
toString()
Provides string representation of the training set data in addition to that of the parent Cluster. |
Methods inherited from class marf.Storage.Cluster |
---|
addFilename, dumpCSV, existsFilename, restoreCSV, setMeanVector |
Methods inherited from class marf.Storage.TrainingSample |
---|
getDataVector, getSubjectID, setDataVector, setFeatureVector, setFilename, setSubjectID |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.Vector oFeatureVectors
Constructor Detail |
---|
public FeatureSet()
Method Detail |
---|
public java.util.Vector getFeatureVectors()
public int size()
size
in interface ITrainingSample
size
in class TrainingSample
ITrainingSample.size()
public void restoreCSV() throws StorageException
StorageException
NotImplementedException
public void dumpCSV() throws StorageException
StorageException
NotImplementedException
public double[] getMeanVector()
TrainingSample
getDataVector()
.
getMeanVector
in interface ITrainingSample
getMeanVector
in class TrainingSample
TrainingSample.getDataVector()
public double[] getMedianVector()
TrainingSample
getDataVector()
.
getMedianVector
in interface ITrainingSample
getMedianVector
in class TrainingSample
TrainingSample.getDataVector()
public boolean addFeatureVector(double[] padFeatureVector, java.lang.String pstrFilename, int piSubjectID)
Cluster
addFeatureVector
in interface ITrainingSample
addFeatureVector
in class Cluster
padFeatureVector
- vector to addpstrFilename
- filename to addpiSubjectID
- for which subject that vector is
true
if the vector was added; false
otherwiseITrainingSample.setFeatureVector(double[], String, int)
public int getMeanCount()
Cluster
getMeanCount
in interface ITrainingSample
getMeanCount
in class Cluster
ITrainingSample.getMeanCount()
public java.lang.Object clone()
clone
in class Cluster
Object.clone()
public java.lang.String toString()
toString
in class Cluster
Cluster.toString()
public static java.lang.String getMARFSourceCodeRevision()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |