public class VarianceContext extends Object implements Context<VarianceContext>
Modifier and Type | Field and Description |
---|---|
protected int |
_ncount |
protected double |
_sqsum |
protected double |
_sum |
static ContextFactory<VarianceContext> |
FACTORY |
Constructor and Description |
---|
VarianceContext() |
Modifier and Type | Method and Description |
---|---|
void |
add(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.
|
Double |
getVar() |
Double |
getVarP() |
void |
merge(VarianceContext ctx)
Merge from another context of the same type.
|
protected double _sqsum
protected double _sum
protected int _ncount
public static final ContextFactory<VarianceContext> FACTORY
public void add(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 Double getVar()
public Double getVarP()
Copyright © 2017. All rights reserved.