Package org.geotools.feature.visitor
Class QuantileListVisitor
Object
QuantileListVisitor
- All Implemented Interfaces:
FeatureVisitor
,FeatureCalc
Obtains the data needed for a Quantile operation (classification of features into classes of equal size).
The result contains an array of lists with the expression values in each.
- Author:
- Cory Horner, Refractions Research Inc.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
Returns the result of the calculation as a handy object which can be merged and modified.void
init
(SimpleFeatureCollection collection) void
reset
(int bins) void
Visit the provided feature.void
visit
(SimpleFeature feature)
-
Constructor Details
-
QuantileListVisitor
-
-
Method Details
-
init
-
getResult
Description copied from interface:FeatureCalc
Returns the result of the calculation as a handy object which can be merged and modified.- Specified by:
getResult
in interfaceFeatureCalc
- Returns:
- the results of the calculation
-
visit
-
visit
Description copied from interface:FeatureVisitor
Visit the provided feature.Please consult the documentation for the FeatureCollection you are visiting to learn more - the provided feature may be invalid, or read only.
- Specified by:
visit
in interfaceFeatureVisitor
-
reset
public void reset(int bins) -
getNaNCount
public int getNaNCount()- Returns:
- the number of features which returned a NaN
-
getNullCount
public int getNullCount()- Returns:
- the number of features which returned a null
-