net.ontopia.topicmaps.viz
Class PerformanceStat

java.lang.Object
  extended by net.ontopia.topicmaps.viz.PerformanceStat

public class PerformanceStat
extends java.lang.Object


Field Summary
protected  long count
           
protected  java.lang.String id
           
protected  long initTime
           
protected  long max
           
protected  long min
           
protected  boolean showIndividuals
           
protected  long startTime
           
protected  long sum
           
protected  long sumOfSquares
           
 
Constructor Summary
PerformanceStat(java.lang.String id)
           
 
Method Summary
 void init()
           
 void report()
           
 void setShowIndividuals(boolean showIndividuals)
           
static double standardDev(long sum, long sumOfSquares, long count)
          Given the sum of the values, the sum of the squares of the values and the number of values in a collection numbers, calculates the standard deviation
 void startOp()
           
 void stopOp()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sum

protected long sum

sumOfSquares

protected long sumOfSquares

count

protected long count

min

protected long min

max

protected long max

initTime

protected long initTime

startTime

protected long startTime

id

protected java.lang.String id

showIndividuals

protected boolean showIndividuals
Constructor Detail

PerformanceStat

public PerformanceStat(java.lang.String id)
Method Detail

init

public void init()

setShowIndividuals

public void setShowIndividuals(boolean showIndividuals)

startOp

public void startOp()

stopOp

public void stopOp()

report

public void report()

standardDev

public static double standardDev(long sum,
                                 long sumOfSquares,
                                 long count)
Given the sum of the values, the sum of the squares of the values and the number of values in a collection numbers, calculates the standard deviation

Parameters:
sum - The sum of the values.
sumOfSquares - The sum of the squares of the values.
count - The number of values.
Returns:
The standard deviation of the values.


Copyright © 2000-2012 Ontopia.