9 double tval = *(
const double *)closure;
16 for (i = 0; i < n; i++) {
24 G_debug(2,
"values[%d] %f, tval %f", i, values[i], tval);
27 if (fabs(tval - values[i]) < epsilon) {
30 G_debug(2,
"values[%d] %f, thresh %f, threshx %f, diff %f", i,
31 values[i], thresh, threshx, tval - values[i]);
void c_thresh(DCELL *result, DCELL *values, int n, const void *closure)
int G_debug(int, const char *,...) __attribute__((format(printf
void Rast_set_d_null_value(DCELL *, int)
To set a number of DCELL raster values to NULL.
#define Rast_is_d_null_value(dcellVal)