ifw-odp 5.0.0
Loading...
Searching...
No Matches
clipm_math_rng.h
Go to the documentation of this file.
1
2/*********************************************************************
3 * E.S.O. - VLT project
4 *
5 * "@(#) $Id: clipm_math_rng.h 262777 2014-12-10 10:55:13Z cgarcia $"
6 *
7 * Functions for generation of random values
8 *
9 * who when what
10 * -------- ---------- ----------------------------------------------
11 * hlorch 2006-08-08 created
12 */
13
14#ifndef CLIPM_MATH_RNG_H
15#define CLIPM_MATH_RNG_H
16
17/*-----------------------------------------------------------------------------
18 Includes
19 -----------------------------------------------------------------------------*/
20
21#include <cpl.h>
22
23/*-----------------------------------------------------------------------------
24 Declaration Block
25 -----------------------------------------------------------------------------*/
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31/*-----------------------------------------------------------------------------
32 Prototypes
33 -----------------------------------------------------------------------------*/
34
35double clipm_math_rng_uniform50( void);
36double clipm_math_rng_gaussian( void);
38 double xmin,
39 double ymin,
40 double xmax,
41 double ymax,
42 cpl_size homogeneity,
43 cpl_size N,
44 cpl_type type);
45
46/*----------------------------------------------------------------------------*/
47
48#ifdef __cplusplus
49} /* extern "C" */
50#endif
51
52#endif /* CLIPM_MATH_RNG_H */
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.
Definition clipm_math_rng.c:486
double clipm_math_rng_gaussian(void)
Generate gaussian-distributed random number.
Definition clipm_math_rng.c:255
double clipm_math_rng_uniform50(void)
Generate random number between 0 and 1.
Definition clipm_math_rng.c:138