Home | Develop | Download | Contact
pdsuniformquantizer.h
1 /*
2  * pdsuniformquantizer.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 
32 #ifndef __PDSUNIFORMQUANTIZER_H__
33 #define __PDSUNIFORMQUANTIZER_H__
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 #include <pds/pdsdsglobal.h>
40 #include <stdlib.h>
41 
42 #ifndef TRUE
43  #define TRUE 1
44 #endif
45 
46 #ifndef FALSE
47  #define FALSE 0
48 #endif
49 
72 typedef struct
73 {
88 
90 
91 
106 
107 
119 
120 
132 
133 
142 
143 
148 #ifdef __cplusplus
149 }
150 #endif
151 
152 #endif /* __PDSUNIFORMQUANTIZER_H__ */
unsigned int PdsDsNatural
Definition: pdsdsglobal.h:47
int pds_uniform_quantizer_get_value(const PdsUniformQuantizer *Q, PdsDsNatural Id, PdsDsReal *Valor)
Devuelve un valor representativo correspondiente al nivel de cuantificación del Id.
PdsUniformQuantizer * pds_uniform_quantizer_new(PdsDsReal A, PdsDsReal B, PdsDsNatural Bits)
Crea una estructura de tipo PdsUniformQuantizer.
La estructura tipo PdsUniformQuantizer.
int pds_uniform_quantizer_get_id(const PdsUniformQuantizer *Q, PdsDsReal Valor, PdsDsNatural *Id)
Devuelve el índice correspondiente al nivel de cuantización del Valor.
float PdsDsReal
Definition: pdsdsglobal.h:42
void pds_uniform_quantizer_free(PdsUniformQuantizer *Q)
Libera la memoria correspondiente al cuantizador Q.

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed