Home | Develop | Download | Contact
pdsgeneratedata.h
1 /*
2  * pdsgeneratedata.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 
30 #ifndef __PDSGENERATEDATA_H__
31 #define __PDSGENERATEDATA_H__
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 
38 #include <pds/pdsnnglobal.h>
39 #include <pds/pdsra.h>
40 #include <pds/pdsrv.h>
41 
42 
43 #ifndef TRUE
44  #define TRUE 1
45 #endif
46 
47 #ifndef FALSE
48  #define FALSE 0
49 #endif
50 
51 
66 double pds_generate_data_func1(double x);
67 
79 int pds_generate_data_input_func2pi(PdsVector *X,double (*func)(double),PdsNnReal C,PdsNnReal OffsetError);
80 
81 
91 int pds_generate_data_input_rand(PdsVector *X,PdsNnReal A);
92 
93 
101 int pds_generate_data_output_negative(PdsVector *Y);
102 
103 
111 int pds_generate_data_output_positive(PdsVector *Y);
112 
113 
123 int pds_generate_data_output_mspace(PdsVector *Y,PdsRaNatural M);
124 
129 #ifdef __cplusplus
130 }
131 #endif
132 
133 #endif
134 
135 
int pds_generate_data_output_mspace(PdsVector *Y, PdsRaNatural M)
Genera un vector con +1 en la posición M del vector Y, los otros valores son -1.
int pds_generate_data_input_rand(PdsVector *X, PdsNnReal A)
double pds_generate_data_func1(double x)
Genera una funcion de periodo 2*pi y dominio entre -1 y 1.
int pds_generate_data_output_negative(PdsVector *Y)
Genera un vector con -1 en todos los elementos del vector Y.
float PdsNnReal
Definition: pdsnnglobal.h:52
int pds_generate_data_output_positive(PdsVector *Y)
Genera un vector con +1 en todos los elementos del vector Y.
int pds_generate_data_input_func2pi(PdsVector *X, double(*func)(double), PdsNnReal C, PdsNnReal OffsetError)
Genera un vector con C ciclos de la función func() con un error de offset de valor OffsetError...

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed