diva.sketch.classification
Class FeatureSet
java.lang.Object
diva.sketch.classification.FeatureSet
public class FeatureSet
- extends Object
A data structure for storing features for a classifier; it is
basically a typesafe array of doubles with appropriate accessor
methods. It is up to the client to maintain consistency between
different instances of feature sets, i.e. that they have the
same number of elements and that the features at specific indices
are
- Version:
- $Revision: 1.4 $
- Author:
- Michael Shilman (michaels@eecs.berkeley.edu)
FeatureSet
public FeatureSet(int num)
FeatureSet
public FeatureSet(double[] features)
getFeature
public final double getFeature(int i)
getFeatureCount
public final int getFeatureCount()
getFeatures
public double[] getFeatures()
setFeature
public final void setFeature(int i,
double val)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.