/Users/huttone/Devel/sedflux-new/sedflux/trunk/ew/utils/eh_rand.h

Go to the documentation of this file.
00001 //---
00002 //
00003 // This file is part of sedflux.
00004 //
00005 // sedflux is free software; you can redistribute it and/or modify
00006 // it under the terms of the GNU General Public License as published by
00007 // the Free Software Foundation; either version 2 of the License, or
00008 // (at your option) any later version.
00009 //
00010 // sedflux is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 // GNU General Public License for more details.
00014 //
00015 // You should have received a copy of the GNU General Public License
00016 // along with sedflux; if not, write to the Free Software
00017 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 //
00019 //---
00020 
00021 #ifndef __EH_RAND_H__
00022 #define __EH_RAND_H__
00023 
00024 #include <math.h>
00025 #include <glib.h>
00026 
00027 // double            eh_ran0                          ( long* );
00028 // double            eh_ran1                          ( long* );
00029 // double            eh_ran2                          ( long* );
00030 // double            eh_ran3                          ( long* );
00031 // double            eh_ran4                          ( long* );
00032 // double            eh_cosdev                        ( long* );
00033 // double            eh_expdev                        ( long* );
00034 // double            eh_powdev                        ( long* );
00035 // double            eh_maxpowdev                     ( long* );
00036 // double            eh_gasdev                        ( long* );
00037 // double            eh_reject                        ( long* );
00038 
00039 double eh_ran0(long*);
00040 double eh_ran1(long*);
00041 double eh_ran2(long*);
00042 double eh_ran3(long*);
00043 double eh_ran4(long*);
00044 
00045 double eh_cosdev               (long*);
00046 double eh_expdev               (long*);
00047 double eh_powdev         (double,long*);
00048 double eh_maxpowdev      (double,double,long*);
00049 double eh_gasdev         ( long* );
00050 double eh_reject         (double (*)(double),double (*)(double),double (*)(double) );
00051 
00052 double eh_rand_exponential     ( GRand* rand , double                                 );
00053 double eh_rand_max_exponential ( GRand* rand , double mean , double n                 );
00054 double eh_log_normal           ( GRand* rand , double mean , double std               );
00055 double eh_max_log_normal       ( GRand* rand , double mean , double std , double n    );
00056 double eh_rand_weibull         ( GRand* rand , double eta  , double beta              );
00057 double eh_rand_max_weibull     ( GRand* rand , double eta  , double beta , double n   );
00058 double eh_rand_normal          ( GRand* rand , double mu   , double sigma             );
00059 double eh_rand_user            ( GRand* rand , double *x   , double *F  , gssize len  );
00060 
00061 double    eh_get_fuzzy_dbl      ( double min  , double max );
00062 double    eh_get_fuzzy_dbl_norm ( double mean , double std );
00063 gint32    eh_get_fuzzy_int      ( gint32 min  , gint32 max );
00064 
00065 #endif

Generated on Fri Jan 4 18:04:16 2008 for sedflux by  doxygen 1.5.2