@Test public void testClear() { featureVector.clear(); for (int i = 0; i < featureVector.size(); i++) assertEquals("FeatureVector.size() failed", featureVector.get(i), 0.0, 0.0); }
public void clear() { for (int i=0; i<features.length; i++) features[i] = 0; }
FeatureVector implements java.io.Serializable { public void clear() { for (int i=0; i<features.length; i++) features[i] = 0; } }
FeatureVector implements java.io.Serializable { public void clear() { for (int i=0; i<features.length; i++) features[i] = 0; } FeatureVector(FeatureVector _fv);  FeatureVector(int numFeatures);  FeatureVector(double [] vals, ClassLabel _classLabel); }
FeatureVector implements java.io.Serializable { public void clear() { for (int i=0; i<features.length; i++) features[i] = 0; } FeatureVector(FeatureVector _fv);  FeatureVector(int numFeatures);  FeatureVector(double [] vals, ClassLabel _classLabel); int size(); ClassLabel getClassLabel(); int getIntClassLabel(); void setClassLabel(ClassLabel classLabel); void set(int index, double value); double get(int index); double get(int index, double _default); double[] getAll(); void clear(); }
FeatureVector implements java.io.Serializable { public void clear() { for (int i=0; i<features.length; i++) features[i] = 0; } FeatureVector(FeatureVector _fv);  FeatureVector(int numFeatures);  FeatureVector(double [] vals, ClassLabel _classLabel); int size(); ClassLabel getClassLabel(); int getIntClassLabel(); void setClassLabel(ClassLabel classLabel); void set(int index, double value); double get(int index); double get(int index, double _default); double[] getAll(); void clear();  }