public bool isCorrect(Vector prediction) { /* * compares the index having greatest value in target to indec having * greatest value in prediction. Ifidentical, correct */ return getTarget().indexHavingMaxValue() == prediction .indexHavingMaxValue(); }