org.geotools.feature.visitor
Class QuantileListVisitor

java.lang.Object
  extended byorg.geotools.feature.visitor.QuantileListVisitor
All Implemented Interfaces:
FeatureCalc, FeatureVisitor

public class QuantileListVisitor
extends java.lang.Object
implements 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
QuantileListVisitor(Expression expr, int bins)
           
 
Method Summary
 int getNaNCount()
           
 int getNullCount()
           
 CalcResult getResult()
          Returns the result of the calculation as a handy object which can be merged and modified.
 void reset(int bins)
           
 void visit(Feature feature)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuantileListVisitor

public QuantileListVisitor(Expression expr,
                           int bins)
Method Detail

getResult

public CalcResult 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 interface FeatureCalc
Returns:
the results of the calculation

visit

public void visit(Feature feature)
Specified by:
visit in interface FeatureVisitor

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


Copyright © GeoTools. All Rights Reserved.