git-svn-id: http://moon:8086/svn/software/trunk/projects/Rbm@560 b431acfa-c32f-4a4a-93f1-934dc6c82436
43 lines
1.1 KiB
C
43 lines
1.1 KiB
C
/*
|
|
==============================================================================
|
|
|
|
noise.h
|
|
Created: 21 Sep 2014 1:55:07pm
|
|
Author: jens
|
|
|
|
==============================================================================
|
|
*/
|
|
// --------------------------------------------------------------
|
|
#ifndef _NOISE_H_
|
|
#define _NOISE_H_
|
|
|
|
#define __func__ ""
|
|
// --------------------------------------------------------------
|
|
// Types
|
|
// --------------------------------------------------------------
|
|
typedef struct _snoise_gen_t
|
|
{
|
|
long state;
|
|
} noise_gen_t;
|
|
|
|
// --------------------------------------------------------------
|
|
#if defined(__cplusplus)
|
|
extern "C" {
|
|
#endif
|
|
|
|
// --------------------------------------------------------------
|
|
// Exported functions
|
|
// --------------------------------------------------------------
|
|
void Noise_Init(noise_gen_t *pObj, long seed);
|
|
void Noise_Free(noise_gen_t *pObj);
|
|
double Noise_Uniform(noise_gen_t *pObj);
|
|
double Noise_Gaussian(noise_gen_t *pObj);
|
|
|
|
#if defined(__cplusplus)
|
|
}
|
|
|
|
#endif
|
|
// --------------------------------------------------------------
|
|
|
|
#endif // _NOISE_H_
|