BellMF-class: Bell Membership Function S4 class

Description Slots Note Author(s) See Also Examples

Description

Represent a concrete Bell shaped Membership Function S4 class with parameters a, b, c. Slots inherited of MembershipFunction class and related functions: show, print, derivateMF, evaluateMF, [ and [<-.

Slots

parameters

named numeric vector with parameters of Membership Function.

nParameters

integer with the number of parameters for validity check.

name

character The description of the membership function.

expression

expression object just to display purposes.

Note

derivateMF, evaluateMF are extended. Prototype is defined and validity is inherited.

Author(s)

Cristobal Fresno cfresno@bdmg.com.ar, Andrea S. Llera ALlera@leloir.org.ar and Elmer A. Fernandez efernandez@bdmg.com.ar

See Also

GaussianMF-class and NormalizedGaussianMF-class

Other Membership Functions: GaussianMF, GaussianMF-class; MembershipFunction, MembershipFunction-class; NormalizedGaussianMF, NormalizedGaussianMF-class; [,MembershipFunction-method, [<-,MembershipFunction-method, extract-methods, extract-methods; derivateMF, derivateMF, derivateMF, derivateMF, derivateMF, derivateMF,BellMF-method, derivateMF,GaussianMF-method, derivateMF,MembershipFunction-method, derivateMF,NormalizedGaussianMF-method, derivateMF-methods; evaluateMF, evaluateMF, evaluateMF, evaluateMF, evaluateMF, evaluateMF,BellMF-method, evaluateMF,GaussianMF-method, evaluateMF,MembershipFunction-method, evaluateMF,NormalizedGaussianMF-method, evaluateMF-methods; print,MembershipFunction-method; show,MembershipFunction-method

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#BellMF example I
#A bell membership function with default prototype (a=1, b=1,c=0)
#The membership of x in the bell, should be 1
#The derivate of the first parameter at x, should be 0
#The derivate of the first parameter at x, should be also 0
bell <- new(Class="BellMF")
bell
evaluateMF(object=bell, x=0)
derivateMF(object=bell, x=0, i=1)
derivateMF(object=bell, x=0, i="a")
#
#BellMF example II
#A bell membership function with parameters (a=4,b=1,c=-10)
#The membership of x in the bell, should be 0.137931
#The derivate of the first parameter at x, should be 0.05945303
#The derivate on "a" at x=0, should be 0.05945303
bell2 <- new(Class="BellMF",parameters=c(a=4,b=1,c=-10))
bell2
evaluateMF(object=bell2, x=0)
derivateMF(object=bell2, x=0, i=1)
derivateMF(object=bell2, x=0, i="a")

Example output

Loading required package: parallel
MembershipFunction:  Bell Membership Function 
Number of parameters: 3 
a b c 
1 1 0 
Expression: expression(1/(1 + (((x - c)/a)^2)^(b^2)))
c 
1 
b 
0 
b 
0 
MembershipFunction:  Bell Membership Function 
Number of parameters: 3 
  a   b   c 
  4   1 -10 
Expression: expression(1/(1 + (((x - c)/a)^2)^(b^2)))
       c 
0.137931 
         b 
0.05945303 
         b 
0.05945303 

anfis documentation built on May 2, 2019, 2:38 a.m.

Related to BellMF-class in anfis...