diva.sketch.classification
Class FeatureSet

java.lang.Object
  extended by 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)

Constructor Summary
FeatureSet(double[] features)
           
FeatureSet(int num)
           
 
Method Summary
 double getFeature(int i)
           
 int getFeatureCount()
           
 double[] getFeatures()
           
 void setFeature(int i, double val)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FeatureSet

public FeatureSet(int num)

FeatureSet

public FeatureSet(double[] features)
Method Detail

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.