Home | Develop | Download | Contact
pdsrayleigh.h
1 /*
2  * pdsrayleigh.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 
35 #ifndef __PDSRAYLEIGH_H__
36 #define __PDSRAYLEIGH_H__
37 
38 #include <stdio.h>
39 #include <pds/pdsrvglobal.h>
40 #include <pds/pdscongruential.h>
41 #include <pds/pdsvector.h>
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46 
64 typedef struct
65 {
68 
71 
77 
87 
88 
97 
113 
114 
126 
127 
142 int pds_rayleigh_get_vector(PdsRayleigh *X,PdsVector *x);
143 
144 
152 
153 
161 
166 #ifdef __cplusplus
167 }
168 #endif
169 
170 #endif /* __PDSRAYLEIGH_H__ */
171 
PdsRvReal Sigma
Definition: pdsrayleigh.h:70
PdsRayleigh * pds_rayleigh_new(PdsRvReal Sigma)
Crea una variable aleatoria de tipo PdsRayleigh.
void pds_rayleigh_destroy(PdsRayleigh **X)
Libera la variable aleatoria de tipo puntero PdsRayleigh, y la carga con NULL.
int pds_rayleigh_get_last_value(PdsRayleigh *X, PdsRvReal *x)
Retorna el último número pseudo aleatorio entregada por la R.V. rayleighiana, Rayleighiana(Sigma) ...
float PdsRvReal
Definition: pdsrvglobal.h:59
La estructura tipo PdsCongruential. Esta estructura genera una secuencia aleatoria congruential...
PdsRvReal x
Definition: pdsrayleigh.h:75
int pds_rayleigh_get_value(PdsRayleigh *X, PdsRvReal *x)
Retorna un número pseudo aleatorio rayleighiano, Rayleighiana(Sigma) .
PdsCongruential * X1
Definition: pdsrayleigh.h:67
int pds_rayleigh_init(PdsRayleigh *X, PdsRvReal x0)
Inicia la variable aleatorio Rayleigh,.
void pds_rayleigh_free(PdsRayleigh *X)
Libera la variable aleatoria de tipo puntero PdsRayleigh.
La estructura tipo PdsRayleigh. Esta estructura genera una variable aleatoria rayleighiana, Rayleighiana(Sigma) . Para usar incluir pdsrv/pdsrv.h. La función de densidad de probabilidad es: fx(x)=(x/Sigma^2)e^{-x^2/(2 Sigma^2)} x>=0 .
Definition: pdsrayleigh.h:64
int pds_rayleigh_get_vector(PdsRayleigh *X, PdsVector *x)
Carga un vector con números pseudo aleatorios rayleighianos, Rayleighiana(Sigma) ...

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed