Home | Develop | Download | Contact
RaIndices.hpp
1 /*
2  * RaIndices.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_RAINDICES_HPP__
31 #define __PDS_RAINDICES_HPP__
32 
33 #include <string>
34 #include <list>
35 #include <vector>
36 #include <Pds/Vector>
37 
47 namespace Pds{
52 namespace Ra{
53 
54 
73  std::list<unsigned int> IndicesRandList(unsigned int Init,unsigned int End, unsigned int N);
74 
88  std::vector<unsigned int> IndicesRandVector(unsigned int Init,unsigned int End, unsigned int N);
89 
90 
105  std::vector<unsigned int> IndicesRandVector(const Pds::Vector &Y, double Umbral, unsigned int N);
106 
114  std::string IndicesToString(std::list<unsigned int> IDs, std::string separator="");
115 
123  std::string IndicesToString(std::vector<unsigned int> IDs, std::string separator="");
124 
131 } // namespace Ra
132 } // namespace Pds
133 
134 
139 #endif /* __PDS_RAINDICES_HPP__ */
La clase tipo Pds::Vector . Esta clase genera una matriz de Nlin lineas y 1 columna....
Definition: Vector.hpp:78
std::vector< unsigned int > IndicesRandVector(unsigned int Init, unsigned int End, unsigned int N)
Retorna una lista aleatoria de indices.
std::list< unsigned int > IndicesRandList(unsigned int Init, unsigned int End, unsigned int N)
Retorna una lista aleatoria de indices.
std::string IndicesToString(std::list< unsigned int > IDs, std::string separator="")
Convierte una lista de indices a un std::string.
Nombre de espacion para PDS (Procesamiento Digital de Senales)
Definition: RaFile.hpp:47

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed