Home | Develop | Download | Contact
pdsexponential.h
1 /*
2  * pdsexponential.h
3  *
4  * Copyright 2011 Fernando Pujaico Rivera <fernando.pujaico.rivera@gmail.com>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19  * MA 02110-1301, USA.
20  *
21  */
22 
34 #ifndef __PDSEXPONENTIAL_H__
35 #define __PDSEXPONENTIAL_H__
36 
37 #include <stdio.h>
38 #include <pds/pdsrvglobal.h>
39 #include <pds/pdscongruential.h>
40 #include <pds/pdsvector.h>
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
62 typedef struct
63 {
66 
69 
75 
86 
87 
96 
97 
113 
114 
126 
127 
142 int pds_exponential_get_vector(PdsExponential *X, PdsVector *x);
143 
144 
152 
153 
161 
166 #ifdef __cplusplus
167 }
168 #endif
169 
170 #endif /* __PDSEXPONENTIAL_H__ */
171 
int pds_exponential_get_value(PdsExponential *X, PdsRvReal *x)
Retorna un número pseudo aleatorio exponencial, Exponential(Lambda) .
PdsCongruential * X1
PdsRvReal Lambda
float PdsRvReal
Definition: pdsrvglobal.h:59
La estructura tipo PdsExponential. Esta estructura genera una variable aleatoria exponencial. Exponential(Lambda) Para usar incluir pdsrv/pdsrv.h. La función de densidad de probabilidad es: fx(x)=lambda e^{-lambda x} , x [0,oo) .
int pds_exponential_init(PdsExponential *X, PdsRvReal x0)
Inicia la variable aleatorio exponencial,.
La estructura tipo PdsCongruential. Esta estructura genera una secuencia aleatoria congruential...
void pds_exponential_destroy(PdsExponential **X)
Libera la variable aleatoria de tipo puntero PdsExponential, y la carga con NULL. ...
int pds_exponential_get_vector(PdsExponential *X, PdsVector *x)
Carga un vector con valores pseudo aleatorio exponenciales, Exponential(Lambda) .
void pds_exponential_free(PdsExponential *X)
Libera la variable aleatoria de tipo puntero PdsExponential.
int pds_exponential_get_last_value(PdsExponential *X, PdsRvReal *x)
Retorna el último número pseudo aleatorio entregado por la R.V. exponencial, Exponential(Lambda) ...
PdsExponential * pds_exponential_new(PdsRvReal Lambda)
Crea una variable aleatoria de tipo PdsExponential.

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed