32#ifndef __PDS_GRID_HPP__
33#define __PDS_GRID_HPP__
62template <
typename Datum>
131 if (
Nlin >= this->nlin ||
Ncol>= this->ncol)
133 throw std::out_of_range(
"Indices out of range");
136 return this->data[this->nlin*
Ncol +
Nlin];
146 if (
Nlin >= this->nlin ||
Ncol>= this->ncol)
148 throw std::out_of_range(
"Indices out of range");
151 return this->data[this->nlin*
Ncol +
Nlin];
162 if (
Nlin >= this->nlin ||
Ncol>= this->ncol)
164 throw std::out_of_range(
"Indices out of range");
167 return this->data[this->nlin*
Ncol +
Nlin];
177 if (
Nlin >= this->nlin ||
Ncol>= this->ncol)
179 throw std::out_of_range(
"Indices out of range");
182 return this->data[this->nlin*
Ncol +
Nlin];
202 if((this->nlin==0)||(this->ncol==0))
return true;
214 if((this->nlin==0)||(this->ncol==0))
return false;
La clase tipo Grid . Esta clase genera una agrupación de 2 datos. Para usar incluir Pds/Grid.
std::vector< Datum > data
Grid(unsigned int Nlin, unsigned int Ncol)
Crea un objeto de tipo Pds::Grid.
const Datum & At(unsigned int Nlin, unsigned int Ncol) const
Acessar en modo lectura a un dato de un objeto de tipo Pds::Grid.
Datum Get(unsigned int Nlin, unsigned int Ncol) const
Obter datos de un objeto de tipo Pds::Grid.
Datum & operator()(unsigned int Nlin, unsigned int Ncol)
Acessar en modo lectura y escritura a un dato de un objeto de tipo Pds::Grid.
void MakeEmpty(void)
Convierte el Kohonen2D a vazio, es decir limpia todos los datos internos.
unsigned int Ncol(void) const
Retorna el número de columnas da grid.
bool IsNotEmpty(void) const
Verifica si el Kohonen2D NO está vazio.
Datum & In(unsigned int Nlin, unsigned int Ncol)
Acessar en modo lectura y escritura a un dato de un objeto de tipo Pds::Grid.
unsigned int Nlin(void) const
Retorna el número de lineas da grid.
Grid(void)
Crea un objeto de tipo Pds::Grid vacio.
bool IsEmpty(void) const
Verifica si el Kohonen2D está vazio.
Nombre de espacio para Pds (Procesamiento Digital de Senales)