fuzzynum Class Reference

#include <fuzzynum.h>

List of all members.

Public Member Functions

 fuzzynum (void)
double give_max (long acutid)
double give_max (double alpha)
double give_min (long acutid)
double give_min (double alpha)
double give_val (long i)
void initiate (long n, double *al)
void minmax_init ()
void onearray ()
void print (FILE *out)
void print_minmax (FILE *out)
void read (XFILE *in)
void save_alp_max (long acutid, double al, double max)
void save_alp_min (long acutid, double al, double min)
void save_max (long acutid, double max)
void save_max (double alpha, double max)
void save_min (long acutid, double min)
void save_min (double alpha, double min)
void save_value (double val)
 ~fuzzynum (void)

Public Attributes

double * alph
 array of alpha-cut values
double err
 required error/deviation
long nalph
 number of alpha-cuts
long nval
 number of values on axis
double * x
 values of alpha-cuts in increasing ordering
double * xmax
 maximum values of alpha-cuts
double * xmin
 minimum values of alpha-cuts

Detailed Description

class fuzzynum

JK, 18.8.2005

Definition at line 13 of file fuzzynum.h.


Constructor & Destructor Documentation

fuzzynum ( void   ) 

Definition at line 5 of file fuzzynum.cpp.

References alph, err, nalph, nval, x, xmax, and xmin.

~fuzzynum ( void   ) 

Definition at line 27 of file fuzzynum.cpp.

References alph, x, xmax, and xmin.


Member Function Documentation

double give_max ( long  acutid  ) 

function returns maximum value of alpha-cut

Parameters:
acutid - number of alpha-cut

JK, 18.8.2005

Definition at line 197 of file fuzzynum.cpp.

References nalph, and xmax.

double give_max ( double  alpha  ) 

function returns maximum value of alpha-cut alpha from segment <0;1> is given

Parameters:
alpha - alpha-cut value

JK, 18.8.2005

Definition at line 168 of file fuzzynum.cpp.

References alph, err, nalph, and xmax.

Referenced by fuzzygen::gener_alphacuts(), and fuzzygen::save_values().

double give_min ( long  acutid  ) 

function returns minimum value of alpha-cut

Parameters:
acutid - number of alpha-cut

JK, 18.8.2005

Definition at line 150 of file fuzzynum.cpp.

References nalph, and xmin.

double give_min ( double  alpha  ) 

function returns minimum value of alpha-cut alpha from segment <0;1> is given

Parameters:
alpha - alpha-cut value

JK, 18.8.2005

Definition at line 121 of file fuzzynum.cpp.

References alph, err, nalph, and xmin.

Referenced by fuzzygen::gener_alphacuts(), and fuzzygen::save_values().

double give_val ( long  i  ) 

function returns value from list of alpha-cuts

JK, 9.10.2005

Definition at line 428 of file fuzzynum.cpp.

References x.

Referenced by fuzzygen::gener_allcomb().

void initiate ( long  n,
double *  al 
)

function initiates fuzzy number

Parameters:
n - number of alpha cuts
al - array of alpha cuts

JK

Definition at line 79 of file fuzzynum.cpp.

References alph, nalph, xmax, and xmin.

Referenced by stochdriver::read().

void minmax_init (  ) 

function initiates fuzzy number for storage of minimum and maximum values

JK, 4.12.2007

Definition at line 460 of file fuzzynum.cpp.

References nalph, xmax, and xmin.

void onearray (  ) 

function creates one array of alpha-cut values instead of two arrays (one array for minimum and one array for maximum values)

JK, 9.10.2005

Definition at line 399 of file fuzzynum.cpp.

References nalph, nval, x, xmax, and xmin.

Referenced by fuzzygen::read().

void print ( FILE *  out  ) 

function prints detail informations about fuzzy number

Parameters:
out - output stream

JK, 17.4.2007

Definition at line 371 of file fuzzynum.cpp.

References alph, nalph, xmax, and xmin.

Referenced by solve_mefel_stochastic_problem().

void print_minmax ( FILE *  out  ) 

function prints only the minimum and maximum values

Parameters:
out - output stream

JK, 17.4.2007

Definition at line 388 of file fuzzynum.cpp.

References xmax, and xmin.

void read ( XFILE in  ) 

function reads fuzzy number from input file

Parameters:
in - input file

JK, 18.8.2005

Definition at line 42 of file fuzzynum.cpp.

References alph, nalph, xfscanf(), xmax, and xmin.

Referenced by fuzzygen::read().

void save_alp_max ( long  acutid,
double  al,
double  max 
)

function saves maximum value and alpha value

Parameters:
acutid - number of alpha-cut
al - value of alpha
max - maximum value of aplha-cut

JK, 22.8.2005

Definition at line 353 of file fuzzynum.cpp.

References alph, nalph, and xmax.

Referenced by fuzzygen::save_values().

void save_alp_min ( long  acutid,
double  al,
double  min 
)

function saves maximum value and alpha value

Parameters:
acutid - number of alpha-cut
al - value of alpha
min - minimum value of aplha-cut

JK, 22.8.2005

Definition at line 281 of file fuzzynum.cpp.

References alph, nalph, and xmin.

Referenced by fuzzygen::save_values().

void save_max ( long  acutid,
double  max 
)

function saves maximum value of alpha-cut

Parameters:
acutid - number of alpha-cut
max - maximum value of aplha-cut

JK, 18.8.2005

Definition at line 334 of file fuzzynum.cpp.

References nalph, and xmax.

void save_max ( double  alpha,
double  max 
)

function saves maximum value of alpha-cut

Parameters:
alpha - alpha-cut value
max - maximum value alpha-cut

JK, 18.8.2005

Definition at line 306 of file fuzzynum.cpp.

References alph, err, nalph, and xmax.

void save_min ( long  acutid,
double  min 
)

function saves minimum value of alpha-cut

Parameters:
acutid - number of alpha-cut
min - minimum value of aplha-cut

JK, 18.8.2005

Definition at line 262 of file fuzzynum.cpp.

References nalph, and xmin.

void save_min ( double  alpha,
double  min 
)

function saves minimum value of alpha-cut

Parameters:
alpha - alpha-cut value
min - minimum value alpha-cut

JK, 18.8.2005

Definition at line 234 of file fuzzynum.cpp.

References alph, err, nalph, and xmin.

void save_value ( double  val  ) 

function saves value to the fuzzy number

it is intended for problems where minimum and maximum values from a set of values is stored nalph should be 1

if val is less than minimum value, the minimum value is overwritten by the value if val is greater than maximum value, the maximum value is overwritten by the value

Parameters:
val - stored value

JK, 4.12.2007

Definition at line 447 of file fuzzynum.cpp.

References xmax, and xmin.


Member Data Documentation

double* alph

array of alpha-cut values

Definition at line 47 of file fuzzynum.h.

Referenced by fuzzynum(), give_max(), give_min(), initiate(), print(), read(), save_alp_max(), save_alp_min(), save_max(), save_min(), and ~fuzzynum().

double err

required error/deviation

Definition at line 58 of file fuzzynum.h.

Referenced by fuzzynum(), give_max(), give_min(), save_max(), and save_min().

long nalph

number of alpha-cuts

Definition at line 45 of file fuzzynum.h.

Referenced by fuzzynum(), give_max(), give_min(), initiate(), minmax_init(), onearray(), print(), read(), save_alp_max(), save_alp_min(), save_max(), and save_min().

long nval

number of values on axis

Definition at line 53 of file fuzzynum.h.

Referenced by fuzzynum(), and onearray().

double* x

values of alpha-cuts in increasing ordering

Definition at line 55 of file fuzzynum.h.

Referenced by fuzzynum(), give_val(), onearray(), and ~fuzzynum().

double* xmax

maximum values of alpha-cuts

Definition at line 51 of file fuzzynum.h.

Referenced by fuzzynum(), give_max(), initiate(), minmax_init(), onearray(), print(), print_minmax(), read(), save_alp_max(), save_max(), save_value(), and ~fuzzynum().

double* xmin

minimum values of alpha-cuts

Definition at line 49 of file fuzzynum.h.

Referenced by fuzzynum(), give_min(), initiate(), minmax_init(), onearray(), print(), print_minmax(), read(), save_alp_min(), save_min(), save_value(), and ~fuzzynum().


The documentation for this class was generated from the following files:

Generated by  doxygen 1.6.2