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 FunctionName
NAME
-
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 void
computePercentage(double[] percentages, double classMembers, double totalSize, int index)
Compute the percentage from the input parameters, setting in the percentages array at the specified indexObject
evaluate(Object feature)
Subclass should override, default implementation returns null.protected boolean
percentages()
-
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:ExpressionAbstract
Subclass should override, default implementation returns null.- Specified by:
evaluate
in interfaceExpression
- Specified by:
evaluate
in classClassificationFunction
- Returns:
- default implementation returns null
-
computePercentage
protected void computePercentage(double[] percentages, double classMembers, double totalSize, int index)
Description copied from class:ClassificationFunction
Compute the percentage from the input parameters, setting in the percentages array at the specified index- Overrides:
computePercentage
in classClassificationFunction
-
percentages
protected boolean percentages()
-
-