Home | Develop | Download | Contact
pdsbsc.h
1 /*
2  * pdsbsc.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 
34 #ifndef __PDSBSC_H__
35 #define __PDSBSC_H__
36 
37 #include <stdio.h>
38 
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 
43 #include <pds/pdscmglobal.h>
44 #include <pds/pdsuniform.h>
45 #include <pds/pdsbvector.h>
46 
47 #ifndef TRUE
48  #define TRUE 1
49 #endif
50 
51 #ifndef FALSE
52  #define FALSE 0
53 #endif
54 
67 typedef struct
68 {
70  PdsUniform *Z;
71 
74 }PdsBsc;
75 
76 
84 
85 
94 int pds_bsc_evaluate(PdsBsc *Channel,const PdsBVector *BVectorInput,PdsBVector *BVectorOutput);
95 
104 int pds_bsc_evaluate_val(PdsBsc *Channel,PdsBaBit u0,PdsBaBit *u);
105 
112 void pds_bsc_free(PdsBsc *Channel);
113 
114 
121 void pds_bsc_destroy(PdsBsc **Channel);
122 
123 
128 #ifdef __cplusplus
129 }
130 #endif
131 
132 #endif
133 /* FPRNEURON_H */
134 
float PdsCmReal
Definition: pdscmglobal.h:46
int pds_bsc_evaluate_val(PdsBsc *Channel, PdsBaBit u0, PdsBaBit *u)
Evalua un bit en un canal BSC.
void pds_bsc_free(PdsBsc *Channel)
Libera un canal de tipo puntero PdsBsc.
PdsUniform * Z
Definition: pdsbsc.h:70
int pds_bsc_evaluate(PdsBsc *Channel, const PdsBVector *BVectorInput, PdsBVector *BVectorOutput)
Evalua un vector binario en un canal BSC.
PdsCmReal p
Definition: pdsbsc.h:73
void pds_bsc_destroy(PdsBsc **Channel)
Libera un canal de tipo puntero PdsBsc y lo carga con NULL.
La estructura tipo PdsBsc . Esta estructura genera una canal BSC. Para usar incluir pds/pdsbsc...
Definition: pdsbsc.h:67
PdsBsc * pds_bsc_new(PdsCmReal p)
Crea un canal de tipo PdsBsc.

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed