|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmarf.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 ITrainingSamplesize in class TrainingSampleITrainingSample.size()
public void restoreCSV()
throws StorageException
StorageException
NotImplementedException
public void dumpCSV()
throws StorageException
StorageException
NotImplementedExceptionpublic double[] getMeanVector()
TrainingSamplegetDataVector().
getMeanVector in interface ITrainingSamplegetMeanVector in class TrainingSampleTrainingSample.getDataVector()public double[] getMedianVector()
TrainingSamplegetDataVector().
getMedianVector in interface ITrainingSamplegetMedianVector in class TrainingSampleTrainingSample.getDataVector()
public boolean addFeatureVector(double[] padFeatureVector,
java.lang.String pstrFilename,
int piSubjectID)
Cluster
addFeatureVector in interface ITrainingSampleaddFeatureVector in class ClusterpadFeatureVector - 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 ITrainingSamplegetMeanCount in class ClusterITrainingSample.getMeanCount()public java.lang.Object clone()
clone in class ClusterObject.clone()public java.lang.String toString()
toString in class ClusterCluster.toString()public static java.lang.String getMARFSourceCodeRevision()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||