@Override public String toString() { String msg; msg = "Primitive counts for " + numberOfElements + " types:\n"; int i; for (i = 0; i < numberOfElements; i++) { msg += " - " + VSDK.formatDouble(featureVector[i]) + "\n"; } return msg; }
@Override public void setFeatureVector(double vector[]) { if (vector.length != numberOfElements) { VSDK.reportMessage( this, VSDK.ERROR, "setFeatureVector", "Trying to set featurevector from incorrectly sized data!"); return; } featureVector = new double[numberOfElements]; int i; for (i = 0; i < featureVector.length; i++) { featureVector[i] = vector[i]; } }