Content-type: text/html Manpage of casino

casino

Section: C Library Functions (3)
Updated: 7 August 1999
Index Return to Main Contents
 

NAME

ran1, ran2, ran3, ranlp, gasdev, gasdev2, gamdev, poidev, bnldev, numdev, n_from_m, spear, pearsn, moment, ttest, tutest, cntab1, enigma8write, enigma8read  

SYNOPSIS

double ran1(void);

double ran2(void);

double ran3(void);

double ranlp(long *idum);

double gasdev
(
       double (*ran)(void),

       double variance

);

double gasdev2
(
       double (*ran)(void),

       double variance

);

double gamdev
(
       int ia,

       double (*ran)(void)

);

double poidev
(
       double xm,

       double (*ran)(void)

);

double bnldev
(
       double pp,

       int n,

       double (*ran)(void)

);

double numdev
(
       double (*ran)(void),

       gate_type *gate_f

);

int n_from_m
(
       int n,

       int m

);

void spear
(
       double data1[],

       double data2[],

       int n,

       double *d,

       double *zd,

       double *probd,

       double *rs,

       double *probrs

);

void pearsn
(
       double x[],

       double y[],

       int n,

       double *r,

       double *prob,

       double *z

);

void moment
(
       double data[],

       int n,

       double *ave,

       double *rms,

       double *adev,

       double *sdev,

       double *svar,

       double *skew,

       double *curt

);

void ttest
(
       double data_1[],

       int n1,

       double data_2[],

       int n2,

       double *t,

       double *prob

);

void tutest
(
       double data_1[],

       int n1,

       double data_2[],

       int n2,

       real *t,

       real *prob

);

void cntab1
(
       int **nn,

       int ni,

       int nj,

       double *chisq,

       double *df,

       double *prob,

       double *cramrv,

       double *ccc

);

int enigma8write
(
       unsigned long key,

       int fdes,

       unsigned char *buf,

       unsigned long size

);

int enigma8read
(
       unsigned long key,

       int fdes,

       unsigned char *buf,

       unsigned long size

);
 

PARAMETERS

long *idum
Not Documented.
double (*ran)(void)
Not Documented.
double variance
Not Documented.
int ia
Not Documented.
double xm
Not Documented.
double pp
Not Documented.
gate_type *gate_f
Not Documented.
int m
Not Documented.
double data1[]
Data array 1.
double data2[]
Data array 2.
int n        (spear)
Number of data elements.
double *d
Sum squared difference of ranks.
double *zd
Deviation from null hypothesis.
double *probd
Two sided significance.
double *rs
Spearmans's rank correlation.
double *probrs
Significance of rs dev from zero.
double x[]
Data array 1.
double y[]
Data array 2.
int n        (pearsn)
Number of elements in data array.
double *r
Linear correlation coefficient.
double *prob
Significance of correlation.
double *z
Fisher's Z.
double data[]
Data to be analysed.
int n        (moment)
Number of pts in dataset.
double *ave
Average deviation.
double *rms
Root mean square error.
double *adev
Average deviation.
double *sdev
Standard deviation.
double *svar
Variance.
double *skew
Skewness.
double *curt
Kurtosis.
double data_1[]
Not Documented.
int n1
Not Documented.
double data_2[]
Not Documented.
int n2
Not Documented.
double *t
Not Documented.
real *t
Not Documented.
real *prob
Not Documented.
int **nn
Not Documented.
int ni
Not Documented.
int nj
Not Documented.
double *chisq
Not Documented.
double *df
Not Documented.
double *cramrv
Not Documented.
double *ccc
Not Documented.
unsigned long key
Not Documented.
int fdes
Not Documented.
unsigned char *buf
Not Documented.
unsigned long size
Not Documented.
 

DESCRIPTION

 

ran1

Portable random number generator based on the 'ran1' uniform deviate generator described in "Numerical Recipes in C" ...  

ran2

Random number generator based on the 'ran2' deviate generator described in "Numerical Recipes in C" ...  

ran3

Random number generator based upon the random deviate generator based on the portable random deviate generator proposed by Knuth ...  

ranlp

Long period random number generator of L'Ecuyer with Bays-Durham shuffle as added safeguards. Returns a uniform random deviate between 0.0 and 1.0. Call with idum as a negative integer to initialise; thereafter do not alter idum between calls. RNMX should aproximate the largest floating point value which is less than one ...  

gasdev

Return a normally distributed deviate with zero mean, and unit variance using user defined random number generator ...  

gasdev2

Return Gaussian distribution using the central limit theorem ...  

gamdev

Generate gamma distribution ...  

poidev

Possion deviate distribution ...  

bnldev

Binomial distribution ...  

numdev

Generate a user defined distribution from a numerical function ...  

n_from_m

Routine to compute the number of unique combinations of n objects taken from a set of m objects ...  

spear

Routine to perform non parametric rank correlation [Spearman] ...  

pearsn

Routine to determine the linear correlation between two sets of variables ...  

moment

Return the mean, standard, deviation, variance, skewness and kurtosis of a distribution ...  

ttest

Routine to test whether two distributions have the same mean. The result of the Student t test is returned as t, and its significance as prob. This routine is based on that given in Numerical Recipes in C p616 ...  

tutest

Student t for significantly different means where the two populations to be compared have significantly different variances ...  

cntab1

Compute chi-square and two measure of association for two different distributions, Cramer's V and the contingency coefficient ...  

enigma8write

Encrypt datastream using 8 rotor enigma machine (only secure enough to stop casual snooping) ...  

enigma8read

Decrypt datastream using 8 rotor enigma machine (only secure enough to stop casual snooping) ...


 

Index

NAME
SYNOPSIS
PARAMETERS
DESCRIPTION
ran1
ran2
ran3
ranlp
gasdev
gasdev2
gamdev
poidev
bnldev
numdev
n_from_m
spear
pearsn
moment
ttest
tutest
cntab1
enigma8write
enigma8read

This document was created by man2html, using the manual pages.
Time: 16:36:10 GMT, January 10, 2008