Home | Develop | Download | Contact
pdsgaussian.h
1 /*
2  * pdsgaussian.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 __PDSGAUSSIAN_H__
35 #define __PDSGAUSSIAN_H__
36 
37 #include <stdio.h>
38 #include <pds/pdsrvglobal.h>
39 #include <pds/pdscongruential.h>
40 #include <pds/pdsuniform.h>
41 #include <pds/pdsvector.h>
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46 
64 typedef struct
65 {
68 
71 
74 
77 
83 
94 
103 
104 
120 
121 
132 
133 
148 int pds_gaussian_get_vector(PdsGaussian *X,PdsVector *x);
149 
150 
158 
159 
167 
172 #ifdef __cplusplus
173 }
174 #endif
175 
176 #endif /* __PDSGAUSSIAN_H__ */
177 
PdsUniform * X2
Definition: pdsgaussian.h:70
int pds_gaussian_get_value(PdsGaussian *X, PdsRvReal *x)
Retorna un número pseudo aleatorio gaussiano, N(U,Sigma^2) .
PdsRvReal x
Definition: pdsgaussian.h:81
int pds_gaussian_get_vector(PdsGaussian *X, PdsVector *x)
Carga un vector con valores pseudo aleatorio gaussianos, N(U,Sigma^2) .
PdsRvReal U
Definition: pdsgaussian.h:73
float PdsRvReal
Definition: pdsrvglobal.h:59
PdsCongruential * X1
Definition: pdsgaussian.h:67
La estructura tipo PdsCongruential. Esta estructura genera una secuencia aleatoria congruential...
int pds_gaussian_get_last_value(PdsGaussian *X, PdsRvReal *x)
Retorna el último número pseudo aleatorio entregado por la R.V. gaussiana, N(U,Sigma^2) ...
PdsGaussian * pds_gaussian_new(PdsRvReal U, PdsRvReal Sigma)
Crea una variable aleatoria de tipo PdsGaussian.
void pds_gaussian_free(PdsGaussian *X)
Libera la variable aleatoria de tipo puntero PdsGaussian.
La estructura tipo PdsUniform. Esta estructura genera una variable aleatoria uniformemente distribuid...
Definition: pdsuniform.h:69
int pds_gaussian_init(PdsGaussian *X, PdsRvReal x0)
Inicia la variable aleatoria Gaussiana,.
void pds_gaussian_destroy(PdsGaussian **X)
Libera la variable aleatoria de tipo puntero PdsGaussian, y la carga con NULL.
La estructura tipo PdsGaussian. Esta estructura genera una variable aleatoria gaussiana normalizada...
Definition: pdsgaussian.h:64
PdsRvReal Sigma
Definition: pdsgaussian.h:76

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed