2
* Calculates univariate statistics from the non-null cells
4
* Copyright (C) 2004-2007 by the GRASS Development Team
5
* Author(s): Soeren Gebbert
6
* Based on r.univar from Hamish Bowman, University of Otago, New Zealand
9
* This program is free software under the GNU General Public
10
* License (>=v2). Read the file COPYING that comes with GRASS
21
#include <grass/gis.h>
22
#include <grass/G3d.h>
23
#include <grass/glocale.h>
25
/*- Parameters and global variables -----------------------------------------*/
43
/* command line options are the same for raster and raster3d maps */
46
struct Option *inputfile, *percentile;
47
struct Flag *shell_style, *extended;
50
extern param_type param;
53
void heapsort_double(double *data, int n);
54
void heapsort_float(float *data, int n);
55
void heapsort_int(int *data, int n);
56
int print_stats(univar_stat * stats);
57
univar_stat *create_univar_stat_struct(int map_type, int size, int n_perc);
58
void free_univar_stat_struct(univar_stat * stats);