Loading...
Searching...
No Matches
c_stddev.c
Go to the documentation of this file.
#include <math.h>
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/stats.h>
void c_stddev(DCELL *result, DCELL *values, int n, const void *closure)
{
DCELL var;
c_var(&var, values, n, closure);
if (Rast_is_d_null_value(&var))
Rast_set_d_null_value(result, 1);
else
*result = sqrt(var);
}
void w_stddev(DCELL *result, DCELL (*values)[2], int n, const void *closure)
{
DCELL var;
w_var(&var, values, n, closure);
if (Rast_is_d_null_value(&var))
Rast_set_d_null_value(result, 1);
else
*result = sqrt(var);
}
w_stddev
void w_stddev(DCELL *result, DCELL(*values)[2], int n, const void *closure)
Definition c_stddev.c:19
c_stddev
void c_stddev(DCELL *result, DCELL *values, int n, const void *closure)
Definition c_stddev.c:7
w_var
void w_var(DCELL *result, DCELL(*values)[2], int n, const void *closure)
Definition c_var.c:43
c_var
void c_var(DCELL *result, DCELL *values, int n, const void *closure)
Definition c_var.c:4