Package net.ontopia.topicmaps.viz
Class PerformanceStat
- java.lang.Object
-
- net.ontopia.topicmaps.viz.PerformanceStat
-
public class PerformanceStat extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected longcountprotected Stringidprotected longinitTimeprotected longmaxprotected longminprotected booleanshowIndividualsprotected longstartTimeprotected longsumprotected longsumOfSquares
-
Constructor Summary
Constructors Constructor Description PerformanceStat(String id)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit()voidreport()voidsetShowIndividuals(boolean showIndividuals)static doublestandardDev(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 deviationvoidstartOp()voidstopOp()
-
-
-
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 String id
-
showIndividuals
protected boolean showIndividuals
-
-
Constructor Detail
-
PerformanceStat
public PerformanceStat(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.
-
-