92 if (((stats.
mean + stats.
stdev * scale / 2) +
104 for (i = 0; i <
nbreaks / 2; i++)
127 for (i = 0; i <=
nbreaks / 2; i++)
234 _(
"Equiprobable classbreaks currently limited to 10 classes"));
242 for (i = 0; i < *
nbreaks; i++) {
251 _(
"There are classbreaks outside the range min-max. Number of "
252 "classes reduced to %i, but using probabilities for %i classes."),
254 for (i = 0; i <
j; i++)
259 for (i = 0; i < *
nbreaks; i++) {
276 double chi2 = 1000.0;
286 double *
xn =
G_malloc((n + 1) *
sizeof(
double));
291 double *
x =
G_malloc((n + 1) *
sizeof(
double));
295 double min = data[0];
297 for (i = 1; i <= n; i++)
303 for (i = 2; i <= n; i++) {
311 for (i = 1; i <= n; i++) {
321 for (i = 1; i <=
nbclass; i++) {
327 for (
j = 1;
j <= i;
j++) {
328 double a = 0.0,
b = 0.0, c = 0.0, d = 0.0;
337 for (
int k =
nd; k <= nf; k++) {
356 for (
j = 1;
j <= i;
j++) {
372 for (
j = 1;
j <= im;
j++) {
384 for (
j = 1;
j <= i;
j++) {
391 num[
jj] = num[
jj - 1];
399 double f = (
xn[num[
jj + 1]] -
xn[num[
jj - 1]]) /
400 (
x[num[
jj + 1]] -
x[num[
jj - 1]]);
402 double xt1 = (
x[num[
jj]] -
x[num[
jj - 1]]) * f;
403 double xt2 = (
x[num[
jj + 1]] -
x[num[
jj]]) * f;
454 for (; i <
count; i++) {
double AS_class_discont(const double data[], int count, int nbreaks, double classbreaks[])
double AS_class_apply_algorithm(int algo, const double data[], int nrec, int *nbreaks, double classbreaks[])
int AS_class_quant(const double data[], int count, int nbreaks, double classbreaks[])
int AS_class_frequencies(const double data[], int count, int nbreaks, double classbreaks[], int frequencies[])
int AS_class_equiprob(const double data[], int count, int *nbreaks, double classbreaks[])
int AS_class_interval(const double data[], int count, int nbreaks, double classbreaks[])
int AS_option_to_algorithm(const struct Option *option)
double AS_class_stdev(const double data[], int count, int nbreaks, double classbreaks[])
void AS_eqdrt(double[], double[], int, int, double *, double *, double *)
void AS_basic_stats(const double[], int, struct GASTATS *)
void G_free(void *)
Free allocated memory.
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
void G_warning(const char *,...) __attribute__((format(printf
int int G_strcasecmp(const char *, const char *)
String compare ignoring case (upper or lower)
Structure that stores option information.