Home | Develop | Download | Contact
AbstractRV.hpp
1/*
2 * AbstractRV.hpp
3 *
4 * Copyright 2018 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
30#ifndef __PDS_ABSTRACTRV_HPP__
31#define __PDS_ABSTRACTRV_HPP__
32
33
42namespace Pds{
43
44class Matrix;
45class Vector;
46
55{
56
57public:
58
67 virtual double GetValue(void)=0;
68
73 virtual Pds::Vector GetVector(unsigned int N)=0;
74
81 virtual bool GetVector(Pds::Vector &x)=0;
82
88 virtual Pds::Matrix GetMatrix(unsigned int Nlin,unsigned int Ncol)=0;
89
96 virtual bool GetMatrix(Pds::Matrix &X)=0;
97
102public:
103
114 virtual bool Init(double xinit)=0;
119}; // Class AbstractRV
120
121} // namespace Pds
122
127#endif
128
La clase tipo Pds::AbstractRV . Esta es una clase abstracta para toda la familia de random variables....
Definition: AbstractRV.hpp:55
La clase tipo Pds::Matrix . Esta clase genera una matriz de Nlin lineas y Ncol columnas....
Definition: Matrix.hpp:96
La clase tipo Pds::Vector . Esta clase genera una matriz de Nlin lineas y 1 columna....
Definition: Vector.hpp:80
virtual double GetValue(void)=0
Pide una muestra de la Random Variable.
virtual bool Init(double xinit)=0
Inicializa la variable aleatória.
virtual bool GetMatrix(Pds::Matrix &X)=0
Pide una matriz con muestras de la Random Variable.
virtual bool GetVector(Pds::Vector &x)=0
Pide un vector con muestras de la Random Variable.
virtual Pds::Matrix GetMatrix(unsigned int Nlin, unsigned int Ncol)=0
Pide una matriz con muestras de la Random Variable.
virtual Pds::Vector GetVector(unsigned int N)=0
Pide un vector con muestras de la Random Variable.
Nombre de espacio para Pds (Procesamiento Digital de Senales)
Definition: AbstractRV.hpp:42

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed