|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.pivot.impl.calc.VarianceContext
public class VarianceContext
The context for calculating variance and standard deviation.
| Field Summary | |
|---|---|
protected int |
_ncount
|
protected double |
_sqsum
|
protected double |
_sum
|
static ContextFactory<VarianceContext> |
FACTORY
|
| Constructor Summary | |
|---|---|
VarianceContext()
|
|
| Method Summary | |
|---|---|
void |
add(java.lang.Object item)
Add an item into the aggregation. |
int |
getNumberCount()
Retrieve number count. |
double |
getSum()
Retrieve sum of the numbers. |
double |
getSumOfSquare()
Retrieve sum of the square of the numbers. |
java.lang.Double |
getVar()
|
java.lang.Double |
getVarP()
|
void |
merge(VarianceContext ctx)
Merge from another context of the same type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected double _sqsum
protected double _sum
protected int _ncount
public static final ContextFactory<VarianceContext> FACTORY
| Constructor Detail |
|---|
public VarianceContext()
| Method Detail |
|---|
public void add(java.lang.Object item)
Context
add in interface Context<VarianceContext>public void merge(VarianceContext ctx)
Context
merge in interface Context<VarianceContext>public double getSumOfSquare()
public double getSum()
public int getNumberCount()
public java.lang.Double getVar()
public java.lang.Double getVarP()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||