© 2006-2007 ETH Zurich

org.ximtec.igesture.batch
Class BatchResult

java.lang.Object
  extended by org.ximtec.igesture.batch.BatchResult

public class BatchResult
extends Object

Represents the result with key figures, etc. of the batch process.

Version:
1.0 Dec 2006
Author:
Ueli Kurmann, igesture@uelikurmann.ch, Beat Signer, signer@inf.ethz.ch

Constructor Summary
BatchResult(TestSet testSet, Configuration configuration)
           
 
Method Summary
 Configuration getConfiguration()
          Returns the configuration.
 int getNumberOfCorrects()
          Returns the number of correctly recognised gestures.
 int getNumberOfErrors()
          Returns the number of incorrectly recognised gestures.
 int getNumberOfNoise()
          Returns the number of samples which should be rejected.
 int getNumberOfRejectCorrect()
          Returns the number of gestures which are rejected correctly.
 int getNumberOfRejectError()
          Returns the number of rejected gestures which should have been recognised.
 int getNumberOfSamples()
          Returns the size of the complete test set.
 double getPrecision()
          Computes the precision.
 double getRecall()
          Computes the recall.
 long getRunningTime()
          Returns the running time in milliseconds.
 List<Statistic> getStatistics()
          Returns a list of statistics.
 void incCorrect(String className)
          Increases the number of correct recognitions.
 void incError(String className)
          Increases the number of errors.
 void incRejectCorrect(String className)
          Increments the number of correctly rejected gestures.
 void incRejectError(String className)
          Increments the number of wrongly rejected gestures.
 void setEndTime()
          Sets the end time to the current system time.
 void setStartTime()
          Sets the start time to the current system time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchResult

public BatchResult(TestSet testSet,
                   Configuration configuration)
Method Detail

getNumberOfCorrects

public int getNumberOfCorrects()
Returns the number of correctly recognised gestures.

Returns:
number of correctly recognised gestures

getNumberOfErrors

public int getNumberOfErrors()
Returns the number of incorrectly recognised gestures.

Returns:
number of incorrectly recognised gestures.

getNumberOfRejectCorrect

public int getNumberOfRejectCorrect()
Returns the number of gestures which are rejected correctly.

Returns:
number of correctly rejected gestures.

getNumberOfRejectError

public int getNumberOfRejectError()
Returns the number of rejected gestures which should have been recognised.

Returns:
number of wrongly rejected gestures.

getNumberOfSamples

public int getNumberOfSamples()
Returns the size of the complete test set.

Returns:
size of the test set.

getNumberOfNoise

public int getNumberOfNoise()
Returns the number of samples which should be rejected.

Returns:
number of samples which should be rejected.

incError

public void incError(String className)
Increases the number of errors.

Parameters:
className - the name of the gesture class for which the number of errors has to be increased.

incCorrect

public void incCorrect(String className)
Increases the number of correct recognitions.

Parameters:
className - the name of the gesture class.

incRejectCorrect

public void incRejectCorrect(String className)
Increments the number of correctly rejected gestures.

Parameters:
className - the name of the gesture class.

incRejectError

public void incRejectError(String className)
Increments the number of wrongly rejected gestures.

Parameters:
className - the name of the gesture class.

getPrecision

public double getPrecision()
Computes the precision.

Returns:
the precision.

getRecall

public double getRecall()
Computes the recall.

Returns:
the recall.

setStartTime

public void setStartTime()
Sets the start time to the current system time.


setEndTime

public void setEndTime()
Sets the end time to the current system time.


getRunningTime

public long getRunningTime()
Returns the running time in milliseconds.

Returns:
the running time in milliseconds.

getConfiguration

public Configuration getConfiguration()
Returns the configuration.

Returns:
the configuration.

getStatistics

public List<Statistic> getStatistics()
Returns a list of statistics.

Returns:
the list of statistics.

© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.