2 #include <grass/stats.h>
4 void c_intr(DCELL * result, DCELL * values,
int n,
const void *closure)
16 center = values[n / 2];
20 for (i = 0; i <
n; i++) {
25 if (values[i] != center)
34 *result = (diff * 100.0 + (count / 2)) / count + 1;
void G_set_d_null_value(DCELL *dcellVals, int numVals)
void c_intr(DCELL *result, DCELL *values, int n, const void *closure)
int G_is_d_null_value(const DCELL *dcellVal)
Returns 1 if dcell is NULL, 0 otherwise. This will test if the value dcell is a NaN. Same test as in G_is_f_null_value().