36 long count, total, sum;
71 x = min + (max -
min) * (sum + count / 2.0) / total;
76 if (!first && red2 == red && blu2 == blu && grn2 == grn)
81 &cat, red2, grn2, blu2,
92 if (!first && cat > prev)
94 &cat, red2, grn2, blu2,
114 int red2, grn2, blu2;
136 for (i = 0; i <= statf->
count; i++) {
143 val2 = exp(val2) - 1;
146 x = min + (max -
min) * sum / statf->
total;
149 if (i < statf->
count)
150 sum += statf->
stats[i];
152 if (!first && red2 == red && blu2 == blu && grn2 == grn)
157 &val2, red2, grn2, blu2,
162 if (i == statf->
count)
171 if (!first && val2 > val)
173 &val2, red2, grn2, blu2,
206 for (i = 0; i <= samples; i++) {
207 int red2, grn2, blu2;
211 y = min + (max -
min) * i / samples;
216 else if (i == samples)
219 lx = lmin + (lmax - lmin) * i / samples;
225 &x, red2, grn2, blu2, dst);
256 lmin = log(fabs(min) + 1.0);
257 lmax = log(fabs(max) + 1.0);
259 amax = fabs(min) > fabs(max) ? fabs(min) : fabs(max);
260 lamax = lmin > lmax ? lmin : lmax;
268 for (i = 0; i <= samples; i++) {
269 int red2, grn2, blu2;
273 y = min + (max -
min) * i / samples;
278 else if (i == samples)
281 lx = 0 + lamax * i / samples;
289 &x1, red2, grn2, blu2, dst);
293 &x1, red2, grn2, blu2, dst);
int Rast_next_cell_stat(CELL *, long *, struct Cell_stats *)
Retrieve sorted cell stats.
int Rast_rewind_cell_stats(struct Cell_stats *)
Reset/rewind cell stats.
void Rast_add_c_color_rule(const CELL *, int, int, int, const CELL *, int, int, int, struct Colors *)
Adds the integer color rule (CELL version)
void Rast_get_d_color_range(DCELL *, DCELL *, const struct Colors *)
Get color range values (DCELL)
void Rast_get_default_color(int *, int *, int *, const struct Colors *)
Gets default color.
void Rast_get_null_value_color(int *, int *, int *, const struct Colors *)
Gets color for null value.
void Rast_set_default_color(int, int, int, struct Colors *)
Set default color value.
void Rast_set_null_value_color(int, int, int, struct Colors *)
Set color for NULL-value.
int Rast_get_d_color(const DCELL *, int *, int *, int *, struct Colors *)
Gets color from raster map (DCELL)
void Rast_add_d_color_rule(const DCELL *, int, int, int, const DCELL *, int, int, int, struct Colors *)
Adds the floating-point color rule (DCELL version)
void Rast_init_colors(struct Colors *)
Initialize color structure.
struct _Color_Rule_ * prev