Definition at line 67 of file ann_sim.c.
References ANN_DataRead(), ANN_DataWrite(), ANN_destroy(), ANN_FEEDBACK_UPDATE, ANN_init(), ANN_sim(), ANN_W_A_TEXT, ANN_write(), ANNfile, getopt(), ANN::input, INPUTfile, matrix::mat, matrix_destroy(), matrix_init(), matrix_write(), ANN::N_input, ANN::N_output, NN_OUTPUTfile, optarg, ANN::output, print_usage(), vector::vec, and W_M_BIN.
78 #ifdef HAVE_GETOPT_LONG
79 static struct option
options[] = {
80 {
"usage", 0, 0,
'u' },
82 {
"input", 1, 0,
'I' },
83 {
"nn_output", 1, 0,
'N' }
85 opt = getopt_long(argc, argv,
"uA:I:T:N:", options, NULL);
87 opt =
getopt(argc, argv,
"uA:I:T:N:");
103 printf(
"LOADING DATA...\n");
105 fprintf(stderr,
"Initialization error\n");
111 fprintf(stderr,
"Data input acquisition error\n");
117 fprintf(stderr,
"MAtrix initailization error\n");
123 fprintf(stdout,
"SIMULATION....\n");
124 for (i = 0; i < N_sample; i++) {
126 for (j = 0; j < net.
N_input; j++) {
131 fprintf(stderr,
"Network simulation error\n");
135 for (j = 0; j < net.
N_output; j++) {
mat_res_t matrix_write(matrix *MAT, FILE *fh, unsigned flags)
ann_res_t ANN_DataWrite(matrix *MAT, char *FileName)
ann_res_t ANN_write(ANN *net, FILE *fh, unsigned flags)
ann_res_t ANN_sim(ANN *net, vector *input, vector *output, unsigned flags)
ann_res_t ANN_DataRead(matrix *MAT, int *N_sample, char *FileName)
ann_res_t ANN_init(ANN *net, const char *FileName)
static char * NN_OUTPUTfile
mat_res_t matrix_destroy(matrix *MAT)
#define ANN_FEEDBACK_UPDATE
int getopt(int argc, char *const argv[], const char *opts)
mat_res_t matrix_init(matrix *MAT, unsigned Nrow, unsigned Ncolumn)
ann_res_t ANN_destroy(ANN *net)