* @param analyst The Encog analyst.
* @return The mode.
*/
public int determineMode(EncogAnalyst analyst) {
if( !this.isClassify() ) {
throw new AnalystError("Can only calculate the mode for a class.");
}
DataField df = analyst.getScript().findDataField(this.name);
AnalystClassItem m = null;
int result = 0;