random.h File Reference

#include <stdlib.h>
#include "object.h"

Include dependency graph for random.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define __COMMON_TYPES_RANDOM_H__
#define randu()   (rand() / (RAND_MAX + 1.0))
#define randuc()   (rand() / (PROBAB) RAND_MAX)

Typedefs

typedef REAL PROBAB

Functions

void set_seed (unsigned int seed)
REAL randn ()


Define Documentation

#define __COMMON_TYPES_RANDOM_H__
 

Definition at line 9 of file random.h.

 
#define randu  )     (rand() / (RAND_MAX + 1.0))
 

Definition at line 22 of file random.h.

Referenced by Perceptron::initialize(), NNLayer::initialize(), randn(), dataset::random_sample(), and randvec().

 
#define randuc  )     (rand() / (PROBAB) RAND_MAX)
 

Definition at line 23 of file random.h.


Typedef Documentation

typedef REAL PROBAB
 

Definition at line 14 of file random.h.


Function Documentation

REAL randn  ) 
 

Definition at line 20 of file random.c.

References randu.

void set_seed unsigned int  seed  ) 
 

Definition at line 8 of file random.c.


Generated on Mon Jan 9 23:44:09 2006 for LEMGA by  doxygen 1.4.6