fuzzy_c_means.h

Go to the documentation of this file.
00001 /*
00002 *    Copyright (c) 2007. The BATI team. All right reserved.
00003 *
00004 *    This file is part of BATI library.
00005 *
00006 *    BATI library is free software: you can redistribute it and/or modify
00007 *    it under the terms of the GNU General Public License as published by
00008 *    the Free Software Foundation, either version 3 of the License, or
00009 *    (at your option) any later version.
00010 *
00011 *    BATI library  is distributed in the hope that it will be useful,
00012 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 *    GNU General Public License for more details.
00015 *
00016 *    You should have received a copy of the GNU General Public License
00017 *    along with BATI library.  If not, see <http://www.gnu.org/licenses/>.
00018 */
00019 /* ************************************************************* */
00020 /*                           fuzzy_c_means.h                               */
00021 /* ************************************************************* */
00022 /*                                                               */
00023 /*      Descripteurs et prototypes associés à l'opérateur fcm    */
00024 /*                                                               */
00025 /* ************************************************************* */
00026 /*                                                               */
00027 /*  Dernière modif : Ramasso E. & Jullien S.  08/12/03           */ 
00028 /*                                                               */
00029 /* ************************************************************* */
00030 
00031 
00032 #ifndef __fuzzy_c_means
00033 #define __fuzzy_c_means
00034 
00043 typedef struct {
00044   int nb_class;               
00045   int nb_it;                  
00046   float fuzzy_coeff;          
00047   float threshold;            
00048   float variation;            
00049   unsigned short **centre;    
00051   char extension[200];        
00053   char init_type[50];         
00061 } fuzzy_c_means_t;
00062 
00063 
00064 
00065 
00066 param *fuzzy_c_means_lect(fuzzy_c_means_t *desc, 
00067                           param *ptp, 
00068                           char *debq);
00069 
00070 
00071 int fuzzy_c_means_init(fuzzy_c_means_t *fcm,
00072                        data_input dataI , 
00073                        data_output *dataO);
00074 
00075 
00076 int fuzzy_c_means_calc(fuzzy_c_means_t *fcm,
00077                        data_input dataI , 
00078                        data_output *dataO );     
00079 
00080 
00081 char *Calloc(unsigned nelem,unsigned elsize);
00082 
00083 
00084 void calcul_centroides(fuzzy_c_means_t *fcm, 
00085                        data_input dataI , 
00086                        data_output *dataO);
00087 
00088 
00089 void calcul_coeff_appartenance(fuzzy_c_means_t *fcm,
00090                                data_input dataI , 
00091                                data_output *dataO);
00092 
00093 
00094 void init_coeff_appartenance(fuzzy_c_means_t *fcm,
00095                              data_input dataI , 
00096                              data_output *dataO );
00097 
00098 
00099 #endif
00100 

Generated on Tue Apr 22 13:31:02 2008 for donnee1D by  doxygen 1.5.3