AdaptiveOpticsControl
statistic.h File Reference

Function prototypes for statistic module. More...

Go to the source code of this file.

Functions

int_fast8_t init_statistic ()
 
double ran1 ()
 Uniform distribution from 0 to 1. More...
 
double gauss ()
 Normal distribution, mean=0, sigma=1. More...
 
double gauss_trc ()
 truncated (-1/+1) sigma = 1 mean = 0 gaussian probability More...
 
long poisson (double mu)
 Poisson distribution. More...
 
double gammaln (double xx)
 Gamma function. More...
 
double better_poisson (double mu)
 
double fast_poisson (double mu)
 
long put_poisson_noise (const char *ID_in_name, const char *ID_out_name)
 Apply Poisson noise to image. More...
 
long put_gauss_noise (const char *ID_in_name, const char *ID_out_name, double ampl)
 Apply Gaussian noise to image. More...
 

Detailed Description

Function prototypes for statistic module.

Functions provide statistical tools

Author
O. Guyon
Date
19 Jun 2017
Bug:
No known bugs.
See also
https://github.com/oguyon/Cfits

Function Documentation

double better_poisson ( double  mu)
double fast_poisson ( double  mu)
double gammaln ( double  xx)

Gamma function.

double gauss ( )

Normal distribution, mean=0, sigma=1.

double gauss_trc ( )

truncated (-1/+1) sigma = 1 mean = 0 gaussian probability

int_fast8_t init_statistic ( )
long poisson ( double  mu)

Poisson distribution.

Parameters
muDistribution mean
long put_gauss_noise ( const char *  ID_in_name,
const char *  ID_out_name,
double  ampl 
)

Apply Gaussian noise to image.

long put_poisson_noise ( const char *  ID_in_name,
const char *  ID_out_name 
)

Apply Poisson noise to image.

double ran1 ( )

Uniform distribution from 0 to 1.