#include <stdio.h>
#include <stdarg.h>
#include <math.h>
#include "image.h"
#include "proto2D.h"
#include "ff_symb.h"
#include "classifier.h"
#include "traitement_point_apprentissage.h"
Go to the source code of this file.
Functions | |
Opérateur | |
doc a mettre | |
int | intersch (double *a, double *b) |
int | sum (int i, lgr_d id) |
double | min (double a, double b) |
double | max (double a, double b) |
param * | traitement_donnees_lect (lgr_d *a, param *ptp, char *debq) |
Fonction to do. | |
int | traitement_donnees_init (lgr_d a, learning_set *ls) |
Fonction todo. | |
float | minim (float a, float b) |
float | maxim (float a, float b) |
float | dmin (learning_set ls, int pos_start, int pos_stop, int att) |
int * | clean_learning_set (learning_set *iris, lgr_d id) |
float | val_min (learning_set ls, int pos_start, int pos_stop, int att) |
float | val_max (learning_set ls, int pos_start, int pos_stop, int att) |
int | competitive_agglomeration (learning_set *iris, int start, int stop, int att1, int att2, int classe) |
elem_contour * | contour_extraction (learning_set iris, int start, int stop, int att1, int att2) |
int | convex_verif (learning_set ls, int start, int stop, int att1, int att2) |
int | process_chain (learning_set ls, int att1, int att2, lgr_d a) |
int | traitement_donnees_calc (learning_set ls1, lgr_d a) |
Fonction todo. |
int* clean_learning_set | ( | learning_set * | iris, | |
lgr_d | id | |||
) |
Definition at line 237 of file ltraitement_point_apprentissage.c.
References data_input::attributes, reference_set::input_ref, data_input::nb_attr, data_output::nb_class, data_input::nb_pts, and reference_set::output_ref.
Referenced by process_chain().
int competitive_agglomeration | ( | learning_set * | iris, | |
int | start, | |||
int | stop, | |||
int | att1, | |||
int | att2, | |||
int | classe | |||
) |
Definition at line 358 of file ltraitement_point_apprentissage.c.
References data_input::attributes, convex_verif(), dmin(), reference_set::input_ref, intersch(), max(), min(), and minim().
Referenced by process_chain().
elem_contour* contour_extraction | ( | learning_set | iris, | |
int | start, | |||
int | stop, | |||
int | att1, | |||
int | att2 | |||
) |
Definition at line 586 of file ltraitement_point_apprentissage.c.
References elem_contour::ant, data_input::attributes, reference_set::input_ref, elem_contour::next, elem_contour::x, and elem_contour::y.
int convex_verif | ( | learning_set | ls, | |
int | start, | |||
int | stop, | |||
int | att1, | |||
int | att2 | |||
) |
Definition at line 705 of file ltraitement_point_apprentissage.c.
References data_input::attributes, contour_extraction(), dmin(), reference_set::input_ref, max(), min(), elem_contour::next, val_max(), val_min(), elem_contour::x, and elem_contour::y.
Referenced by competitive_agglomeration(), and process_chain().
float dmin | ( | learning_set | ls, | |
int | pos_start, | |||
int | pos_stop, | |||
int | att | |||
) |
Definition at line 208 of file ltraitement_point_apprentissage.c.
Referenced by competitive_agglomeration(), convex_verif(), and process_chain().
int intersch | ( | double * | a, | |
double * | b | |||
) |
Definition at line 54 of file ltraitement_point_apprentissage.c.
double max | ( | double | a, | |
double | b | |||
) |
Definition at line 77 of file ltraitement_point_apprentissage.c.
Referenced by competitive_agglomeration(), convex_verif(), defuzzification(), gr_defuzzification(), init_coeff_appartenance(), normaliser_data_input_sur_a_b(), and normaliser_data_output_sur_a_b().
float maxim | ( | float | a, | |
float | b | |||
) |
Definition at line 199 of file ltraitement_point_apprentissage.c.
double min | ( | double | a, | |
double | b | |||
) |
Definition at line 70 of file ltraitement_point_apprentissage.c.
Referenced by competitive_agglomeration(), convex_verif(), normaliser_data_input_sur_a_b(), and normaliser_data_output_sur_a_b().
float minim | ( | float | a, | |
float | b | |||
) |
Definition at line 190 of file ltraitement_point_apprentissage.c.
int process_chain | ( | learning_set | ls, | |
int | att1, | |||
int | att2, | |||
lgr_d | a | |||
) |
Definition at line 936 of file ltraitement_point_apprentissage.c.
References data_input::attributes, clean_learning_set(), competitive_agglomeration(), convex_verif(), dmin(), reference_set::input_ref, data_output::nb_class, lgr_d::nb_pts, reference_set::output_ref, sum(), val_max(), and val_min().
Referenced by traitement_donnees_calc().
int sum | ( | int | i, | |
lgr_d | id | |||
) |
Definition at line 62 of file ltraitement_point_apprentissage.c.
int traitement_donnees_calc | ( | learning_set | ls1, | |
lgr_d | a | |||
) |
Fonction todo.
obtains the results of the processing chain and puts it on the output file
ls1 | todo | |
desc | pointeur descripteur |
Definition at line 1061 of file ltraitement_point_apprentissage.c.
Referenced by main().
int traitement_donnees_init | ( | lgr_d | a, | |
learning_set * | ls | |||
) |
Fonction todo.
function that initializes the learning_set variable based on the input file and on the information obtained from the user with "lect"
a | pointeur descripteur | |
ls | to do |
Definition at line 149 of file ltraitement_point_apprentissage.c.
Referenced by main().
param* traitement_donnees_lect | ( | lgr_d * | a, | |
param * | ptp, | |||
char * | debq | |||
) |
Fonction to do.
The function will ask the user the name of the input and output file and some information about the learning set that the input file contains
a | pointeur descripteur | |
ptp | pointeur sur parametre courant déjà alloué (a lire), | |
debq | pointeur de chaine de caractères placée en debut de question |
Definition at line 98 of file ltraitement_point_apprentissage.c.
Referenced by main().
float val_max | ( | learning_set | ls, | |
int | pos_start, | |||
int | pos_stop, | |||
int | att | |||
) |
Definition at line 343 of file ltraitement_point_apprentissage.c.
References data_input::attributes, reference_set::input_ref, and maxim().
Referenced by convex_verif(), and process_chain().
float val_min | ( | learning_set | ls, | |
int | pos_start, | |||
int | pos_stop, | |||
int | att | |||
) |
Definition at line 329 of file ltraitement_point_apprentissage.c.
References data_input::attributes, reference_set::input_ref, and minim().
Referenced by convex_verif(), and process_chain().