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
47namespace Pds{
52namespace Ra{
53
54
76 std::list<unsigned int> IndicesRandList(unsigned int Init,unsigned int End, unsigned int N);
77
94 std::vector<unsigned int> IndicesRandVector(unsigned int Init,unsigned int End, unsigned int N);
95
96
114 std::vector<unsigned int> IndicesRandVector(const Pds::Vector &Y, double Umbral, unsigned int N);
115
126 std::string IndicesToString(std::list<unsigned int> IDs, std::string separator="");
127
138 std::string IndicesToString(std::vector<unsigned int> IDs, std::string separator="");
139
161 std::string IndicesXmlToString(const std::vector<unsigned int> &ID,
162 const std::string &TagName);
163
182 std::vector<unsigned int> IndicesXmlFromString( const std::string &str,
183 const std::string &TagName);
184
185
205 bool Ind2Sub(const Pds::Size Sz, unsigned int ID,unsigned int &lin, unsigned int &col);
206
213} // namespace Ra
214} // namespace Pds
215
216
221#endif /* __PDS_RAINDICES_HPP__ */
La clase tipo Pds::Size . Esta clase genera un objeto con dos parametros Nlin y Ncol....
Definition: Size.hpp:57
La clase tipo Pds::Vector . Esta clase genera una matriz de Nlin lineas y 1 columna....
Definition: Vector.hpp:80
std::string IndicesToString(std::list< unsigned int > IDs, std::string separator="")
Convierte una lista de indices a un std::string.
std::vector< unsigned int > IndicesXmlFromString(const std::string &str, const std::string &TagName)
Lee una lista de indices desde un std::string en Xml.
std::string IndicesXmlToString(const std::vector< unsigned int > &ID, const std::string &TagName)
Convierte una lista de indices a un std::string en Xml.
std::list< unsigned int > IndicesRandList(unsigned int Init, unsigned int End, unsigned int N)
Retorna una lista aleatoria de indices.
bool Ind2Sub(const Pds::Size Sz, unsigned int ID, unsigned int &lin, unsigned int &col)
Convierte un indice ID a un formato (lin,col).
std::vector< unsigned int > IndicesRandVector(unsigned int Init, unsigned int End, unsigned int N)
Retorna una lista aleatoria de indices.
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