| org.geotools.filter.DefaultExpression org.geotools.filter.function.ClassificationFunction
All known Subclasses: org.geotools.filter.function.QuantileFunction, org.geotools.filter.function.StandardDeviationFunction, org.geotools.filter.function.UniqueIntervalFunction, org.geotools.filter.function.EqualIntervalFunction,
ClassificationFunction | abstract public class ClassificationFunction extends DefaultExpression implements FunctionExpression(Code) | | Parent for classifiers which break a feature collection into the specified number of classes.
author: James Macgill author: Cory Horner, Refractions Research Inc. |
ClassificationFunction | public ClassificationFunction()(Code) | | Creates a new instance of ClassificationFunction. Subclasses should call setName
|
accept | public Object accept(ExpressionVisitor visitor, Object extraData)(Code) | | See Also: org.opengis.filter.expression.Expression.accept(ExpressionVisitorObject) |
decimalPlaces | protected int decimalPlaces(double slotWidth)(Code) | | Determines the number of decimal places to truncate the interval at.
Parameters: slotWidth - |
fixRound | protected double fixRound(double value, int decimalPlaces, boolean up)(Code) | | Corrects a round off operation by incrementing or decrementing the
decimal place (preferably the smallest one). This should usually be used
to adjust the bounds to include a value. Example: 0.31-->0.44 where 0.44
is the maximum value and end of the range. We could just make the ,
round(0.31, 1)=0.3; round(0.44 max value = 0.49
Parameters: value - Parameters: decimalPlaces - Parameters: up - |
getArgCount | abstract public int getArgCount()(Code) | | |
getClasses | public int getClasses()(Code) | | |
getImplementationHints | public Map getImplementationHints()(Code) | | Returns the implementation hints. The default implementation returns an empty map.
|
getName | public String getName()(Code) | | Gets the name of this function.
the name of the function. |
getNumberOfClasses | public int getNumberOfClasses()(Code) | | |
getParameters | public List getParameters()(Code) | | Returns the function parameters (the contents are Expressions, usually attribute expression and literal expression).
|
round | protected double round(double value, int decimalPlaces)(Code) | | Truncates a double to a certain number of decimals places. Note:
truncation at zero decimal places will still show up as x.0, since we're
using the double type.
Parameters: value - number to round-off Parameters: decimalPlaces - number of decimal places to leave the rounded value |
setClasses | public void setClasses(int classes)(Code) | | |
setName | public void setName(String name)(Code) | | Sets the name of the function.
|
setNumberOfClasses | public void setNumberOfClasses(int classes)(Code) | | |
setParameters | public void setParameters(List params)(Code) | | Sets the function parameters.
|
Fields inherited from org.geotools.filter.DefaultExpression | protected short expressionType(Code)(Java Doc) protected boolean permissiveConstruction(Code)(Java Doc)
|
|
|