Alexander Bruy 7bd8c071f3 port Basic statistics for fields algorithm to C++
Also add new optional output a table containing calculated statistics
similar to the Statistics by categories algorithm (fix #46241)
2024-07-05 05:18:25 +10:00

32 lines
1.4 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<ogr:FeatureCollection
gml:id="aFeatureCollection"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ogr.maptools.org/ statistics_float.xsd"
xmlns:ogr="http://ogr.maptools.org/"
xmlns:gml="http://www.opengis.net/gml/3.2">
<gml:boundedBy><gml:Null /></gml:boundedBy>
<ogr:featureMember>
<ogr:statistics_float gml:id="statistics_float.0">
<ogr:count>3</ogr:count>
<ogr:unique>3</ogr:unique>
<ogr:empty>1</ogr:empty>
<ogr:filled>3</ogr:filled>
<ogr:min>-0.123</ogr:min>
<ogr:max>0.123</ogr:max>
<ogr:range>0.246</ogr:range>
<ogr:sum>0</ogr:sum>
<ogr:mean>0</ogr:mean>
<ogr:median>0</ogr:median>
<ogr:stddev>0.10042907945411</ogr:stddev>
<ogr:cv>0</ogr:cv>
<ogr:minority>-0.123</ogr:minority>
<ogr:majority>-0.123</ogr:majority>
<ogr:q1>-0.0615</ogr:q1>
<ogr:q3>0.0615</ogr:q3>
<ogr:iqr>0.123</ogr:iqr>
</ogr:statistics_float>
</ogr:featureMember>
</ogr:FeatureCollection>