liba 0.1.15
An algorithm library based on C/C++
|
Enumerations | |
enum | { A_MF_NUL , A_MF_GAUSS , A_MF_GAUSS2 , A_MF_GBELL , A_MF_SIG , A_MF_DSIG , A_MF_PSIG , A_MF_TRAP , A_MF_TRI , A_MF_LINS , A_MF_LINZ , A_MF_S , A_MF_Z , A_MF_PI } |
enumeration for membership function More... | |
Functions | |
double | a_mf_gauss (double x, double sigma, double c) |
gaussian membership function | |
double | a_mf_gauss2 (double x, double sigma1, double c1, double sigma2, double c2) |
gaussian combination membership function | |
double | a_mf_gbell (double x, double a, double b, double c) |
generalized bell-shaped membership function | |
double | a_mf_sig (double x, double a, double c) |
sigmoidal membership function | |
double | a_mf_dsig (double x, double a1, double c1, double a2, double c2) |
difference between two sigmoidal membership functions | |
double | a_mf_psig (double x, double a1, double c1, double a2, double c2) |
product of two sigmoidal membership functions | |
double | a_mf_trap (double x, double a, double b, double c, double d) |
trapezoidal membership function | |
double | a_mf_tri (double x, double a, double b, double c) |
triangular membership function | |
double | a_mf_lins (double x, double a, double b) |
linear s-shaped saturation membership function | |
double | a_mf_linz (double x, double a, double b) |
linear z-shaped saturation membership function | |
double | a_mf_s (double x, double a, double b) |
s-shaped membership function | |
double | a_mf_z (double x, double a, double b) |
z-shaped membership function | |
double | a_mf_pi (double x, double a, double b, double c, double d) |
pi-shaped membership function | |
double | a_mf (unsigned int e, double x, double const *a) |
membership function | |
anonymous enum |
enumeration for membership function
double a_mf | ( | unsigned int | e, |
double | x, | ||
double const * | a ) |
membership function
[in] | e | enumeration for membership function
| ||||||||||||||||||||||||||||
[in] | x | input value for which to compute membership value. | ||||||||||||||||||||||||||||
[in] | a | is an array that stores parameters. |
double a_mf_dsig | ( | double | x, |
double | a1, | ||
double | c1, | ||
double | a2, | ||
double | c2 ) |
difference between two sigmoidal membership functions
\[ f(x,a_1,c_1,a_2,c_2)=\frac{1}{1+e^{-a_1(x-c_1)}}-\frac{1}{1+e^{-a_2(x-c_2)}} \]
[in] | x | input value for which to compute membership value. |
[in] | a1 | defines the width of the first transition area. |
[in] | c1 | defines the center of the first transition area. |
[in] | a2 | defines the width of the second transition area. |
[in] | c2 | defines the center of the second transition area. |
double a_mf_gauss | ( | double | x, |
double | sigma, | ||
double | c ) |
gaussian membership function
\[ f(x,\sigma,c)=e^{-\frac{(x-c)^2}{2\sigma^2}} \]
[in] | x | input value for which to compute membership value. |
[in] | sigma | is the standard deviation. |
[in] | c | is the mean. |
double a_mf_gauss2 | ( | double | x, |
double | sigma1, | ||
double | c1, | ||
double | sigma2, | ||
double | c2 ) |
gaussian combination membership function
\[ f(x,\sigma_1,c_1,\sigma_2,c_2)=\begin{cases} e^{-\frac{(x-c_1)^2}{2\sigma_1^2}} & x \lt c_1 \\ 1 & c_1 \le x \le c_2 \\ e^{-\frac{(x-c_2)^2}{2\sigma_2^2}} & x \gt c_2 \\ \end{cases} \]
[in] | x | input value for which to compute membership value. |
[in] | sigma1 | is the standard deviation of the left gaussian function. |
[in] | c1 | is the mean of the left gaussian function. |
[in] | sigma2 | is the standard deviation of the right gaussian function. |
[in] | c2 | is the mean of the right gaussian function. |
double a_mf_gbell | ( | double | x, |
double | a, | ||
double | b, | ||
double | c ) |
generalized bell-shaped membership function
\[ f(x,a,b,c)=\frac{1}{1+\left|\frac{x-c}{a}\right|^{2b}} \]
[in] | x | input value for which to compute membership value. |
[in] | a | defines the width of the membership function, where a larger value creates a wider membership function. |
[in] | b | defines the shape of the curve on either side of the central plateau, where a larger value creates a more steep transition. |
[in] | c | defines the center of the membership function. |
double a_mf_lins | ( | double | x, |
double | a, | ||
double | b ) |
linear s-shaped saturation membership function
\[ f(x,a,b)=\begin{cases} 0 & x \lt a \\ \frac{x-a}{b-a} & a \le x \le b \\ 1 & x \gt b \\ \end{cases} \]
[in] | x | input value for which to compute membership value. |
[in] | a | defines its foot. |
[in] | b | defines its shoulder. |
double a_mf_linz | ( | double | x, |
double | a, | ||
double | b ) |
linear z-shaped saturation membership function
\[ f(x,a,b)=\begin{cases} 1 & x \lt a \\ \frac{b-x}{b-a} & a \le x \le b \\ 0 & x \gt b \\ \end{cases} \]
[in] | x | input value for which to compute membership value. |
[in] | a | defines its shoulder. |
[in] | b | defines its foot. |
double a_mf_pi | ( | double | x, |
double | a, | ||
double | b, | ||
double | c, | ||
double | d ) |
pi-shaped membership function
\[ f(x,a,b,c,d)=\begin{cases} 0 & x \le a \\ 2(\frac{x-a}{b-a})^2 & a \le x \le \frac{a+b}{2} \\ 1-2(\frac{b-x}{b-a})^2 & \frac{a+b}{2} \le x \le b \\ 1 & b \le x \le c \\ 1-2(\frac{x-c}{d-c})^2 & c \le x \le \frac{c+d}{2} \\ 2(\frac{d-x}{d-c})^2 & \frac{c+d}{2} \le x \le d \\ 1 & x \ge d \\ \end{cases} \]
[in] | x | input value for which to compute membership value. |
[in] | a | defines its left foot. |
[in] | b | defines its left shoulder. |
[in] | c | defines its right shoulder. |
[in] | d | defines its right foot. |
double a_mf_psig | ( | double | x, |
double | a1, | ||
double | c1, | ||
double | a2, | ||
double | c2 ) |
product of two sigmoidal membership functions
\[ f(x,a_1,c_1,a_2,c_2)=\frac{1}{1+e^{-a_1(x-c_1)}}\times\frac{1}{1+e^{-a_2(x-c_2)}} \]
[in] | x | input value for which to compute membership value. |
[in] | a1 | defines the width of the first transition area. |
[in] | c1 | defines the center of the first transition area. |
[in] | a2 | defines the width of the second transition area. |
[in] | c2 | defines the center of the second transition area. |
double a_mf_s | ( | double | x, |
double | a, | ||
double | b ) |
s-shaped membership function
\[ f(x,a,b)=\begin{cases} 0 & x \le a \\ 2(\frac{x-a}{b-a})^2 & a \le x \le \frac{a+b}{2} \\ 1-2(\frac{b-x}{b-a})^2 & \frac{a+b}{2} \le x \le b \\ 1 & x \ge b \\ \end{cases} \]
[in] | x | input value for which to compute membership value. |
[in] | a | defines its foot. |
[in] | b | defines its shoulder. |
double a_mf_sig | ( | double | x, |
double | a, | ||
double | c ) |
sigmoidal membership function
\[ f(x,a,c)=\frac{1}{1+e^{-a(x-c)}} \]
[in] | x | input value for which to compute membership value. |
[in] | a | defines the width of the transition area. |
[in] | c | defines the center of the transition area. |
double a_mf_trap | ( | double | x, |
double | a, | ||
double | b, | ||
double | c, | ||
double | d ) |
trapezoidal membership function
\[ f(x,a,b,c,d)=\begin{cases} 0 & x \le a \\ \frac{x-a}{b-a} & a \le x \le b \\ 1 & b \le x \le c \\ \frac{d-x}{d-c} & c \le x \le d \\ 0 & x \ge d \\ \end{cases} \]
[in] | x | input value for which to compute membership value. |
[in] | a | defines its left foot. |
[in] | b | defines its left shoulder. |
[in] | c | defines its right shoulder. |
[in] | d | defines its right foot. |
double a_mf_tri | ( | double | x, |
double | a, | ||
double | b, | ||
double | c ) |
triangular membership function
\[ f(x,a,b)=\begin{cases} 0 & x \le a \\ \frac{x-a}{b-a} & a \le x \le b \\ \frac{c-x}{c-b} & b \le x \le c \\ 0 & x \ge c \\ \end{cases} \]
[in] | x | input value for which to compute membership value. |
[in] | a | defines its left foot. |
[in] | b | defines its peak. |
[in] | c | defines its right foot. |
double a_mf_z | ( | double | x, |
double | a, | ||
double | b ) |
z-shaped membership function
\[ f(x,a,b)=\begin{cases} 1 & x \le a \\ 1-2(\frac{x-a}{b-a})^2 & a \le x \le \frac{a+b}{2} \\ 2(\frac{b-x}{b-a})^2 & \frac{a+b}{2} \le x \le b \\ 0 & x \ge b \\ \end{cases} \]
[in] | x | input value for which to compute membership value. |
[in] | a | defines its shoulder. |
[in] | b | defines its foot. |