com.petpet.c3po.api.model.helper
Class NumericStatistics
java.lang.Object
com.petpet.c3po.api.model.helper.NumericStatistics
public class NumericStatistics
- extends Object
A simple object that encapsulates the results of some simple statistical
calculations over the values of a numeric property.
- Author:
- Petar Petrov
|
Constructor Summary |
NumericStatistics()
A default empty constructor. |
NumericStatistics(long c,
double s,
double m,
double mx,
double a,
double sd,
double v)
Sets the passed values correspondigly. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumericStatistics
public NumericStatistics()
- A default empty constructor.
NumericStatistics
public NumericStatistics(long c,
double s,
double m,
double mx,
double a,
double sd,
double v)
- Sets the passed values correspondigly.
- Parameters:
c - the counts - the summ - the smallest valuemx - the largest valuea - the averagesd - the standard deviation.v - the variance.
getCount
public long getCount()
setCount
public void setCount(long count)
getSum
public double getSum()
setSum
public void setSum(double sum)
getMin
public double getMin()
setMin
public void setMin(double min)
getMax
public double getMax()
setMax
public void setMax(double max)
getAverage
public double getAverage()
setAverage
public void setAverage(double average)
getStandardDeviation
public double getStandardDeviation()
setStandardDeviation
public void setStandardDeviation(double standardDeviation)
getVariance
public double getVariance()
setVariance
public void setVariance(double variance)
Copyright © 2013. All Rights Reserved.