@Test public void testSet() { featureVector.set(0, 100.0); assertEquals("FeatureVector.set() failed", featureVector.get(0), 100.0, 0); }
public void set(int index, double value) throws ArrayIndexOutOfBoundsException { if (index < 0 || index >= features.length) throw new ArrayIndexOutOfBoundsException(String.valueOf(index) + " out of bounds for FeatureVector with size "+ this.size()); features[index] = value; }
FeatureVector implements java.io.Serializable { public void set(int index, double value) throws ArrayIndexOutOfBoundsException { if (index < 0 || index >= features.length) throw new ArrayIndexOutOfBoundsException(String.valueOf(index) + " out of bounds for FeatureVector with size "+ this.size()); features[index] = value; } }
FeatureVector implements java.io.Serializable { public void set(int index, double value) throws ArrayIndexOutOfBoundsException { if (index < 0 || index >= features.length) throw new ArrayIndexOutOfBoundsException(String.valueOf(index) + " out of bounds for FeatureVector with size "+ this.size()); features[index] = value; } FeatureVector(FeatureVector _fv);  FeatureVector(int numFeatures);  FeatureVector(double [] vals, ClassLabel _classLabel); }
FeatureVector implements java.io.Serializable { public void set(int index, double value) throws ArrayIndexOutOfBoundsException { if (index < 0 || index >= features.length) throw new ArrayIndexOutOfBoundsException(String.valueOf(index) + " out of bounds for FeatureVector with size "+ this.size()); features[index] = value; } 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 set(int index, double value) throws ArrayIndexOutOfBoundsException { if (index < 0 || index >= features.length) throw new ArrayIndexOutOfBoundsException(String.valueOf(index) + " out of bounds for FeatureVector with size "+ this.size()); features[index] = value; } 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();  }