GRASS GIS 8 Programmer's Manual 8.3.2(2024)-exported
|
#include <math.h>
#include <grass/N_pde.h>
#include <grass/glocale.h>
Go to the source code of this file.
Functions | |
double | N_calc_arith_mean (double a, double b) |
Calculate the arithmetic mean of values a and b. | |
double | N_calc_arith_mean_n (double *a, int size) |
Calculate the arithmetic mean of the values in vector a of size n. | |
double | N_calc_geom_mean (double a, double b) |
Calculate the geometrical mean of values a and b. | |
double | N_calc_geom_mean_n (double *a, int size) |
Calculate the geometrical mean of the values in vector a of size n. | |
double | N_calc_harmonic_mean (double a, double b) |
Calculate the harmonical mean of values a and b. | |
double | N_calc_harmonic_mean_n (double *a, int size) |
Calculate the harmonical mean of the values in vector a of size n. | |
double | N_calc_quad_mean (double a, double b) |
Calculate the quadratic mean of values a and b. | |
double | N_calc_quad_mean_n (double *a, int size) |
Calculate the quadratic mean of the values in vector a of size n. | |
double N_calc_arith_mean | ( | double | a, |
double | b | ||
) |
Calculate the arithmetic mean of values a and b.
mean = (a+b)/2
a | double |
b | double |
Definition at line 31 of file n_tools.c.
References b.
Referenced by N_callback_gwflow_2d().
double N_calc_arith_mean_n | ( | double * | a, |
int | size | ||
) |
double N_calc_geom_mean | ( | double | a, |
double | b | ||
) |
Calculate the geometrical mean of values a and b.
mean = sqrt(a*b)
a | double |
b | double |
Definition at line 73 of file n_tools.c.
References b.
Referenced by N_callback_solute_transport_2d().
double N_calc_geom_mean_n | ( | double * | a, |
int | size | ||
) |
double N_calc_harmonic_mean | ( | double | a, |
double | b | ||
) |
Calculate the harmonical mean of values a and b.
mean = 2*(a*b)/(a + b)
a | double |
b | double |
Definition at line 115 of file n_tools.c.
References b.
Referenced by N_callback_gwflow_2d(), N_callback_gwflow_3d(), N_callback_solute_transport_2d(), N_callback_solute_transport_3d(), N_compute_gradient_field_2d(), and N_compute_gradient_field_3d().
double N_calc_harmonic_mean_n | ( | double * | a, |
int | size | ||
) |
Calculate the harmonical mean of the values in vector a of size n.
n = [0 ... size[ mean = 1/(1/size *(1/a[0] + 1/a[1] + ... + 1/a[n]))
a | double * – the value vector |
size | int – the size of the vector a |
double N_calc_quad_mean | ( | double | a, |
double | b | ||
) |
double N_calc_quad_mean_n | ( | double * | a, |
int | size | ||
) |