From: Jody G. (JIRA) <ji...@co...> - 2012-05-11 07:38:10
|
Jody Garnett created GEOT-4138: ---------------------------------- Summary: StandardDeviationFunctionTest updated to support GeoTools 2.2 Classifier Key: GEOT-4138 URL: https://jira.codehaus.org/browse/GEOT-4138 Project: GeoTools Issue Type: Bug Components: main Affects Versions: 8.0-RC1 Reporter: Jody Garnett Assignee: Jody Garnett Attachments: geot-4138-standardDeviation.patch >From Yang on gt-users: {panel} I had trouble to find out what exactly arguments used for standard deviation classification function. Tested it endlessly without luck. There should be two arguments. Like quantile and others, is it right to pass attribute name such as 'population' or 'headcount' for average and how about the other? Tested with classification numbers such as 1, 2, 6...no good, the function returns error with no content to trace. Strangely, if tested using any number less than 1, such as 0.5, 0.25, the function runs with no error but the map not shown. Any help??? {panel} Fixes: - Restored StandardDeviationFunctionTest, it now calculates a classifier, and then ensures that the classifier works. GeoTools 2.1 offered a "single pass" solution based on feature.getParent() method to access the feature collection - StandardDeviationFunction is now single pass relying on StandardDeviationVisitor to calculate mean value in addition to standard deviation - RangedClassifier has a few additional null checks, and a generateTitle resulting in the following: {panel} Group 0: Below -8.463556903291966 Group 1: -8.463556903291966..19.428814365569345 Group 2: 19.428814365569345..47.321185634430655 Group 3: 47.321185634430655..75.21355690329196 Group 4: Above 75.21355690329196 {panel} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |