GRASS GIS 7 Programmer's Manual  7.5.svn(2018)-r72636
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
class.c File Reference
#include <grass/glocale.h>
#include <grass/arraystats.h>
Include dependency graph for class.c:

Go to the source code of this file.

Functions

int AS_option_to_algorithm (const struct Option *option)
 
double AS_class_apply_algorithm (int algo, double *data, int nrec, int *nbreaks, double *classbreaks)
 
int AS_class_interval (double *data, int count, int nbreaks, double *classbreaks)
 
double AS_class_stdev (double *data, int count, int nbreaks, double *classbreaks)
 
int AS_class_quant (double *data, int count, int nbreaks, double *classbreaks)
 
int AS_class_equiprob (double *data, int count, int *nbreaks, double *classbreaks)
 
double AS_class_discont (double *data, int count, int nbreaks, double *classbreaks)
 
int AS_class_frequencies (double *data, int count, int nbreaks, double *classbreaks, int *frequencies)
 

Function Documentation

double AS_class_apply_algorithm ( int  algo,
double *  data,
int  nrec,
int nbreaks,
double *  classbreaks 
)
double AS_class_discont ( double *  data,
int  count,
int  nbreaks,
double *  classbreaks 
)

Definition at line 267 of file class.c.

References AS_eqdrt(), count, max, min, num, and x.

int AS_class_equiprob ( double *  data,
int  count,
int nbreaks,
double *  classbreaks 
)
int AS_class_frequencies ( double *  data,
int  count,
int  nbreaks,
double *  classbreaks,
int frequencies 
)

Definition at line 447 of file class.c.

References count, max, and min.

int AS_class_interval ( double *  data,
int  count,
int  nbreaks,
double *  classbreaks 
)

Definition at line 54 of file class.c.

References max, and min.

Referenced by AS_class_apply_algorithm().

int AS_class_quant ( double *  data,
int  count,
int  nbreaks,
double *  classbreaks 
)

Definition at line 135 of file class.c.

Referenced by AS_class_apply_algorithm().

double AS_class_stdev ( double *  data,
int  count,
int  nbreaks,
double *  classbreaks 
)

Definition at line 71 of file class.c.

References AS_basic_stats(), GASTATS::max, GASTATS::mean, GASTATS::min, and GASTATS::stdev.

Referenced by AS_class_apply_algorithm().

int AS_option_to_algorithm ( const struct Option option)