org.neuroph.util.benchmark
Class BenchmarkTaskResults

java.lang.Object
  extended by org.neuroph.util.benchmark.BenchmarkTaskResults

public class BenchmarkTaskResults
extends Object

This class holds benchmarking results, elapsed times for all iterations and various statistics min, max, avg times and standard deviation

Author:
Zoran Sevarac

Constructor Summary
BenchmarkTaskResults(int testIterations)
           
 
Method Summary
 void addElapsedTime(long time)
           
 void calculateStatistics()
           
 double getAverageTestTime()
           
 long[] getElapsedTimes()
           
 double getMaxTestTime()
           
 double getMinTestTime()
           
 double getStandardDeviation()
           
 int getTestIterations()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BenchmarkTaskResults

public BenchmarkTaskResults(int testIterations)
Method Detail

getAverageTestTime

public double getAverageTestTime()

getElapsedTimes

public long[] getElapsedTimes()

getMaxTestTime

public double getMaxTestTime()

getMinTestTime

public double getMinTestTime()

getStandardDeviation

public double getStandardDeviation()

getTestIterations

public int getTestIterations()

addElapsedTime

public void addElapsedTime(long time)

calculateStatistics

public void calculateStatistics()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.