logistic_rand.h File Reference

An interface to use a coupled chaotic Logistic lattice RNG. More...

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
Include dependency graph for logistic_rand.h:

Go to the source code of this file.

Defines

#define __device__   static inline
#define MCX_RNG_NAME   "Logistic-Lattice"
#define RAND_BUF_LEN   5
#define RAND_SEED_LEN   5

Typedefs

typedef float RandType

Functions

__device__ void rand_need_more (RandType t[RAND_BUF_LEN], RandType tbuf[RAND_BUF_LEN])
__device__ void logistic_init (RandType *t, RandType *tnew, uint seed[], uint idx)
__device__ RandType rand_uniform01 (RandType v)
__device__ void rng_init (RandType t[RAND_BUF_LEN], RandType tnew[RAND_BUF_LEN], uint *n_seed, int idx)
__device__ float rand_next_scatlen (RandType t[RAND_BUF_LEN])
__device__ float rand_next_aangle (RandType t[RAND_BUF_LEN])
__device__ float rand_next_zangle (RandType t[RAND_BUF_LEN])
__device__ float rand_next_reflect (RandType t[RAND_BUF_LEN])
__device__ float rand_do_roulette (RandType t[RAND_BUF_LEN])

Detailed Description

An interface to use a coupled chaotic Logistic lattice RNG.

A Random Number Generator based on coupled chaotic Logistic lattice * * (both double and single precision random numbers are supported) * *

Author:
Qianqian Fang <fangq at nmr.mgh.harvard.edu> * * History: 2009/03/02 CUDA version based on Neal Wagner 1993 * http://www.cs.utsa.edu/~wagner/pubs/logistic/logistic.pdf * *
 All Classes Files Functions Variables
Generated on Wed Dec 15 18:02:15 2010 by  doxygen 1.6.3