ifw-odp
2.0.0-alpha
|
#include <cpl.h>
#include <math.h>
#include <stdlib.h>
#include "clipm_math_rng.h"
#include "clipm_math.h"
#include "clipm_priv_math.h"
#include "clipm_priv_error.h"
#include "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. More... | |
double | clipm_math_rng_gaussian (void) |
Generate gaussian-distributed random number. More... | |
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. More... | |
#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] |