com.anji.integration
Class ErrorRateCounter

java.lang.Object
  extended bycom.anji.integration.ErrorRateCounter

public class ErrorRateCounter
extends java.lang.Object

Author:
Derek James

Method Summary
 void countErrors(double[][] targets, double[][] responses)
           
 void countErrors(java.lang.String logPrefix, double[][] targets, double[][] responses)
          Calculate the sum of differences between responses and target values.
static ErrorRateCounter getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ErrorRateCounter getInstance()
Returns:
singleton instance

countErrors

public void countErrors(double[][] targets,
                        double[][] responses)
Parameters:
targets -
responses -
See Also:
countErrors(String, double[][], double[][])

countErrors

public void countErrors(java.lang.String logPrefix,
                        double[][] targets,
                        double[][] responses)
Calculate the sum of differences between responses and target values.

Parameters:
logPrefix - String to prepend to all logs and exceptions
targets -
responses - values to compare to targets