/usr/include/spooles/Drand/Drand.h is in libspooles-dev 2.2-12build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 | /* Drand.h */
#include "../cfiles.h"
/*--------------------------------------------------------------------*/
/*
------------------------------------------------
Double precision random number generator object
there are two modes ---
uniform on [lower,upper] and normal(mean, sigma)
created -- 96may26, cca
------------------------------------------------
*/
typedef
struct _Drand {
double seed1 ;
double seed2 ;
double base1 ;
double base2 ;
double lower ;
double upper ;
double mean ;
double sigma ;
int mode ;
} Drand ;
/*--------------------------------------------------------------------*/
/*
------------------------------------------------------------------------
----- methods found in basics.c ----------------------------------------
------------------------------------------------------------------------
*/
/*
-----------------------
simplest constructor
created -- 96may26, cca
-----------------------
*/
Drand *
Drand_new (
void
) ;
/*
-----------------------
set the default fields
created -- 96may26, cca
-----------------------
*/
void
Drand_setDefaultFields (
Drand *drand
) ;
/*
--------------------------------------------------
clear the data fields, releasing allocated storage
created -- 96may26, cca
--------------------------------------------------
*/
void
Drand_clearData (
Drand *drand
) ;
/*
------------------------------------------
destructor, free's the object and its data
created -- 96may26, cca
------------------------------------------
*/
Drand *
Drand_free (
Drand *drand
) ;
/*--------------------------------------------------------------------*/
/*
------------------------------------------------------------------------
----- methods found in init.c ------------------------------------------
------------------------------------------------------------------------
*/
/*
---------------------------
initialize the Drand object
created -- 96may26, cca
---------------------------
*/
void
Drand_init (
Drand *drand
) ;
/*
----------------------------------
set the seeds using one input seed
created -- 96may26, cca
----------------------------------
*/
void
Drand_setSeed (
Drand *drand,
int u
) ;
/*
-----------------------------------
set the seeds using two input seeds
created -- 96may26, cca
-----------------------------------
*/
void
Drand_setSeeds (
Drand *drand,
int u,
int v
) ;
/*
--------------------------------------------
set the mode to be uniform in [lower, upper]
created -- 96may26, cca
--------------------------------------------
*/
void
Drand_setUniform (
Drand *drand,
double lower,
double upper
) ;
/*
--------------------------------------
set the mode to be normal(mean, sigma)
created -- 96may26, cca
--------------------------------------
*/
void
Drand_setNormal (
Drand *drand,
double mean,
double sigma
) ;
/*--------------------------------------------------------------------*/
/*
------------------------------------------------------------------------
----- methods found in util.c ------------------------------------------
------------------------------------------------------------------------
*/
/*
--------------------------------------
return a random double precision value
created -- 96may26, cca
--------------------------------------
*/
double
Drand_value (
Drand *drand
) ;
/*
----------------------------------------------------------
fill a double precision complex vector with random numbers
created -- 98jun02, cca
----------------------------------------------------------
*/
void
Drand_fillZvector (
Drand *drand,
int size,
double dvec[]
) ;
/*
--------------------------------------------------
fill a double precision vector with random numbers
created -- 96may26, cca
--------------------------------------------------
*/
void
Drand_fillDvector (
Drand *drand,
int size,
double dvec[]
) ;
/*
-----------------------------------------
fill a integer vector with random numbers
created -- 96may26, cca
-----------------------------------------
*/
void
Drand_fillIvector (
Drand *drand,
int size,
int ivec[]
) ;
/*--------------------------------------------------------------------*/
|