Ok, i've just committed some changes to ClassificationFunction and most of the things it touched (r22786 on trunk). I am not concerned about breakage as the FunctionExpressions that I have changed didn't really work in the first place (they calculated nicely, but didn't return a useful result). The brewer module's usage of these classes was hackish at best. Anyhow, out with the old and in with the new.
Classification Functions like EqualIntervalFunction now return a Classifier object, which contains the ranges of each of the bins that it will classify. ClassifyFunction has also been added, which takes in a Classifier and an Expression, and returns the bin number for a given feature. Classifier still needs some refactoring, to use actual "bin"-like objects rather than arrays of values. Better handling of null, NaN, and else values also needs to be added. After these changes are complete, *all* the ClassificationFunction instances and the Classifier objects will be clear and concise. Cheers, Cory. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
