|
ifw-odp 5.0.0
|
#include <cpl.h>#include <math.h>#include <stdlib.h>#include "ifw/odp/clipm/clipm_math_rng.h"#include "ifw/odp/clipm/clipm_math.h"#include "ifw/odp/clipm/clipm_priv_math.h"#include "ifw/odp/clipm/clipm_priv_error.h"#include "ifw/odp/clipm/clipm_priv_system.h"Macros | |
| #define | DOUBLE_EXP_LENGTH 11 |
| #define | DOUBLE_HEADER_LENGTH (DOUBLE_EXP_LENGTH+1) |
| #define | DOUBLE_NBYTES_IEEE 8 |
| #define | MAX_INTEGER_LENGTH 4 |
| #define | headerlength_in_2nd_most_significant_byte (DOUBLE_HEADER_LENGTH-8) |
| #define | PX(i) points[2*i] |
| #define | PY(i) points[2*i+1] |
| #define | PseqX(i) seq_points[2*i] |
| #define | PseqY(i) seq_points[2*i+1] |
Functions | |
| double | clipm_math_rng_uniform50 (void) |
| Generate random number between 0 and 1. | |
| double | clipm_math_rng_gaussian (void) |
| Generate gaussian-distributed random number. | |
| void * | clipm_math_rng_poisson_pointpattern_2d (double xmin, double ymin, double xmax, double ymax, cpl_size homogeneity, cpl_size N, cpl_type type) |
| Generate 2-dimensional pattern of Poisson-distributed points. | |
| #define DOUBLE_EXP_LENGTH 11 |
| #define DOUBLE_HEADER_LENGTH (DOUBLE_EXP_LENGTH+1) |
| #define DOUBLE_NBYTES_IEEE 8 |
| #define headerlength_in_2nd_most_significant_byte (DOUBLE_HEADER_LENGTH-8) |
| #define MAX_INTEGER_LENGTH 4 |
| #define PseqX | ( | i | ) | seq_points[2*i] |
| #define PseqY | ( | i | ) | seq_points[2*i+1] |
| #define PX | ( | i | ) | points[2*i] |
| #define PY | ( | i | ) | points[2*i+1] |