|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectStandardDeviationVisitor
public class StandardDeviationVisitor
Determines the standard deviation.
----------------------------
| 1 ---
Std dev = | ___ \ ( x - mean ) ^ 2
\| N /__
aka std dev = sqrt((sum((x-mean)^2))/N) where N is the number of samples.
It uses the rolling variance algorithm described here:
http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#On-line_algorithm
| Constructor Summary | |
|---|---|
StandardDeviationVisitor(Expression expr)
Constructs a standard deviation visitor based on the specified expression |
|
StandardDeviationVisitor(Expression expr,
double average)
Deprecated. use StandardDeviationVisitor(Expression) insteads |
|
| Method Summary | |
|---|---|
double |
getMean()
mean value generated when calcualting standard deviation |
int |
getNaNCount()
|
int |
getNullCount()
|
CalcResult |
getResult()
Returns the result of the calculation as a handy object which can be merged and modified. |
void |
init(SimpleFeatureCollection collection)
|
void |
reset()
|
void |
visit(Feature feature)
Visit the provided feature. |
void |
visit(SimpleFeature feature)
|
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated
public StandardDeviationVisitor(Expression expr,
double average)
StandardDeviationVisitor(Expression) insteads
expr - average - public StandardDeviationVisitor(Expression expr)
expr - average - | Method Detail |
|---|
public void init(SimpleFeatureCollection collection)
public CalcResult getResult()
FeatureCalc
getResult in interface FeatureCalcpublic void visit(SimpleFeature feature)
public void visit(Feature feature)
FeatureVisitorPlease consult the documentation for the FeatureCollection you are visiting to learn more - the provided feature may be invalid, or read only.
visit in interface FeatureVisitorpublic void reset()
public double getMean()
public int getNaNCount()
public int getNullCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||