Package org.geotools.filter.function
Class StandardDeviationFunction
- Object
-
- ExpressionAbstract
-
- DefaultExpression
-
- ClassificationFunction
-
- StandardDeviationFunction
-
- All Implemented Interfaces:
Expression,Function,FunctionExpression,Factory
public class StandardDeviationFunction extends ClassificationFunction
Breaks a SimpleFeatureCollection into classes using the standard deviation classification method.- Author:
- Cory Horner, Refractions Research Inc.
-
-
Field Summary
Fields Modifier and Type Field Description static FunctionNameNAME-
Fields inherited from class ClassificationFunction
LOGGER
-
Fields inherited from interface Expression
NIL
-
-
Constructor Summary
Constructors Constructor Description StandardDeviationFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcomputePercentage(double[] percentages, double classMembers, double totalSize, int index)Compute the percentage from the input parameters, setting in the percentages array at the specified indexObjectevaluate(Object feature)Subclass should override, default implementation returns null.protected booleanpercentages()-
Methods inherited from class ClassificationFunction
accept, computeGroupByPercentages, decimalPlaces, fixRound, getClasses, getFallbackValue, getFunctionName, getImplementationHints, getName, getParameters, getProgressListener, round, setClasses, setFallbackValue, setParameters, setProgressListener, toString
-
Methods inherited from class DefaultExpression
isAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpression
-
Methods inherited from class ExpressionAbstract
evaluate
-
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface Expression
evaluate
-
-
-
-
Field Detail
-
NAME
public static FunctionName NAME
-
-
Method Detail
-
evaluate
public Object evaluate(Object feature)
Description copied from class:ExpressionAbstractSubclass should override, default implementation returns null.- Specified by:
evaluatein interfaceExpression- Specified by:
evaluatein classClassificationFunction- Returns:
- default implementation returns null
-
computePercentage
protected void computePercentage(double[] percentages, double classMembers, double totalSize, int index)Description copied from class:ClassificationFunctionCompute the percentage from the input parameters, setting in the percentages array at the specified index- Overrides:
computePercentagein classClassificationFunction
-
percentages
protected boolean percentages()
-
-