[GRASS-SVN] r30283 - grass/trunk/include

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Feb 22 05:18:27 EST 2008


Author: mlennert
Date: 2008-02-22 05:18:27 -0500 (Fri, 22 Feb 2008)
New Revision: 30283

Added:
   grass/trunk/include/arraystats.h
Log:
Beginning of a library of statstics for arrays of doubles


Added: grass/trunk/include/arraystats.h
===================================================================
--- grass/trunk/include/arraystats.h	                        (rev 0)
+++ grass/trunk/include/arraystats.h	2008-02-22 10:18:27 UTC (rev 30283)
@@ -0,0 +1,29 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <math.h>
+#include <grass/glocale.h>
+#include <grass/dbmi.h>
+
+struct GASTATS
+{
+    double count;
+    double min;
+    double max;
+    double sum;
+    double sumsq;
+    double mean;
+    double var;
+    double stdev;
+};
+
+
+int class_interval(double *, int, int, double *);
+int class_quant(double *, int, int, double *);
+double class_discont(double *, int, int, double *);
+double class_stdev(double *, int, int, double *);
+int class_equiprob(double *, int, int *, double *);
+
+int class_frequencies(double *, int, int, double *, int *);
+
+void eqdrt(double[], double[], int, int, double *);
+void basic_stats(double *, int, struct GASTATS *);



More information about the grass-commit mailing list