FuzzyNumber {FuzzyStatTraEOO} | R Documentation |
A 'FuzzyNumber' is an array of dimension nl x 3 x 1. It must be valid.
new()
This method creates a valid 'FuzzyNumber' object with all its attributes set.
FuzzyNumber$new(fnLevels = NA)
fnLevels
is an array of dimension nl x 3 x 1 (general fuzzy number).
nl is the number of considered \alpha
-levels and 3 is the number of
columns of the array. The first column represents the number of considered
\alpha
-levels, the second one represents their infimum values and the
third and last column represents their supremum values.
See examples.
The FuzzyNumber object created with all its attributes set if it is valid.
# Example 1: FuzzyNumber$new(array(c(0.0,0.5,1.0,-1.5,-1.0,-1.0,2.0,1.5,1.0),dim=c(3,3))) # Example 2: FuzzyNumber$new(array(c(0.0,1.0,1,2,4,3),dim=c(2,3)))
getAlphaLevels()
This method gives the 'alphaLevels' array of the 'FuzzyNumber'.
FuzzyNumber$getAlphaLevels()
See examples.
The array alphaLevels of the FuzzyNumber object.
FuzzyNumber$new(array(c(0.0,0.5,1.0,-1.5,-1.0,-1.0,2.0,1.5,1.0),dim=c(3,3)) )$getAlphaLevels()
getInfimums()
This method gives the 'imfimums' array of the 'FuzzyNumber'.
FuzzyNumber$getInfimums()
See examples.
The array imfimums of the FuzzyNumber object.
FuzzyNumber$new(array(c(0.0,0.5,1.0,-1.5,-1.0,-1.0,2.0,1.5,1.0),dim=c(3,3)) )$getInfimums()
getSupremums()
This method gives the 'supremums' array of the 'FuzzyNumber'.
FuzzyNumber$getSupremums()
See examples.
The array supremums of the FuzzyNumber object.
FuzzyNumber$new(array(c(0.0,0.5,1.0,-1.5,-1.0,-1.0,2.0,1.5,1.0),dim=c(3,3)) )$getSupremums()
plot()
This method shows in a graph the values of the alphaLevels, infimums and supremums attributes of the corresponding 'FuzzyNumber'.
FuzzyNumber$plot(color = "grey")
color
is the color of the lines representing the number to be shown in the graph. The default value is grey, other colors can be specified, the option palette() too.
See examples.
a graph with the values of the alphaLevels, infimums and supremums attributes of the corresponding 'FuzzyNumber'.
# Example 1: FuzzyNumber$new(array(c(0.0,0.5,1.0,-1.5,-1.0,-1.0,2.0,1.5,1.0),dim=c(3,3)) )$plot() # Example 2: FuzzyNumber$new(array(c(0.0, 1.0, 1, 1.5, 2, 1.7),dim=c(2,3)) )$plot("blue") # Example 3: Simulation$new()$simulCase1(1L)$transfTra()$getDimension(1L)$plot(palette()) # Example 4: Simulation$new()$simulCase1(1L)$transfTra()$getDimension(1L)$plot(palette()[7])
clone()
The objects of this class are cloneable with this method.
FuzzyNumber$clone(deep = FALSE)
deep
Whether to make a deep clone.
In case you find (almost surely existing) bugs or have recommendations for improving the method, comments are welcome to the above mentioned mail addresses.
Andrea Garcia Cernuda <uo270115@uniovi.es>
## ------------------------------------------------
## Method `FuzzyNumber$new`
## ------------------------------------------------
# Example 1:
FuzzyNumber$new(array(c(0.0,0.5,1.0,-1.5,-1.0,-1.0,2.0,1.5,1.0),dim=c(3,3)))
# Example 2:
FuzzyNumber$new(array(c(0.0,1.0,1,2,4,3),dim=c(2,3)))
## ------------------------------------------------
## Method `FuzzyNumber$getAlphaLevels`
## ------------------------------------------------
FuzzyNumber$new(array(c(0.0,0.5,1.0,-1.5,-1.0,-1.0,2.0,1.5,1.0),dim=c(3,3))
)$getAlphaLevels()
## ------------------------------------------------
## Method `FuzzyNumber$getInfimums`
## ------------------------------------------------
FuzzyNumber$new(array(c(0.0,0.5,1.0,-1.5,-1.0,-1.0,2.0,1.5,1.0),dim=c(3,3))
)$getInfimums()
## ------------------------------------------------
## Method `FuzzyNumber$getSupremums`
## ------------------------------------------------
FuzzyNumber$new(array(c(0.0,0.5,1.0,-1.5,-1.0,-1.0,2.0,1.5,1.0),dim=c(3,3))
)$getSupremums()
## ------------------------------------------------
## Method `FuzzyNumber$plot`
## ------------------------------------------------
# Example 1:
FuzzyNumber$new(array(c(0.0,0.5,1.0,-1.5,-1.0,-1.0,2.0,1.5,1.0),dim=c(3,3))
)$plot()
# Example 2:
FuzzyNumber$new(array(c(0.0, 1.0, 1, 1.5, 2, 1.7),dim=c(2,3))
)$plot("blue")
# Example 3:
Simulation$new()$simulCase1(1L)$transfTra()$getDimension(1L)$plot(palette())
# Example 4:
Simulation$new()$simulCase1(1L)$transfTra()$getDimension(1L)$plot(palette()[7])