VIP: Volume Image Processing


random.h
Go to the documentation of this file.
1/****************************************************************************
2 * PROJECT : V.I.P. Library
3 * MODULE NAME : vip/random.h * TYPE : Header
4 * AUTHOR : MANGIN J.-F. * CREATION : 22/01/1997
5 * VERSION : 0.1 * REVISION :
6 * LANGUAGE : C++ * EXAMPLE :
7 * DEVICE : Sun SPARC Station 5
8 ****************************************************************************
9 *
10 * DESCRIPTION : Generation de nombre aleatoires
11 *
12 ****************************************************************************
13 *
14 * USED MODULES : stdio.h
15 *
16 ****************************************************************************
17 * REVISIONS : DATE | AUTHOR | DESCRIPTION
18 *--------------------|--------------|---------------------------------------
19 * / / | |
20 ****************************************************************************/
21
22#ifndef VIP_ALEATOIRE_H
23#define VIP_ALEATOIRE_H
24
25#ifdef __cplusplus
26 extern "C" {
27#endif
28
29#include <stdio.h>
30
31#include <vip/volume.h>
32
33typedef struct random_box
34{ unsigned char label;
35 float proba;
38
39/*----------------------------------------------------------------------------*/
41 int size,
42 int nb_label
43);
44/*----------------------------------------------------------------------------*/
45
46/*----------------------------------------------------------------------------*/
48 unsigned char label,
49 float proba
50);
51/*----------------------------------------------------------------------------*/
52
53/*----------------------------------------------------------------------------*/
54extern void VipFreeRandomBox(
55 RandomBox *rb_list
56);
57/*----------------------------------------------------------------------------*/
58
59#ifdef __cplusplus
60 }
61#endif
62
63#endif
void VipFreeRandomBox(RandomBox *rb_list)
struct random_box RandomBox
RandomBox * VipCreateRandomBox(unsigned char label, float proba)
RandomBox * VipCreateRandomBoxCircularList(int size, int nb_label)
struct random_box * next
Definition random.h:36
unsigned char label
Definition random.h:34
float proba
Definition random.h:35