StatList {FuzzyStatTraEOO} | R Documentation |
'StatList' is an "abstract class" representing a super class, useful for 'FuzzyNumberList' and 'TrapezoidalFuzzyNumberList' implementation.
Description
'StatList' defines the common attributes and methods of 'FuzzyNumberList' and 'TrapezoidalFuzzyNumberList'. All methods are empty except for some attribute checking, the child classes are the ones that have to give the implementation for the empty methods.
Methods
Public methods
Method new()
This method warns the user that this class can not be initialized as it is abstract.
Usage
StatList$new()
Returns
shows a message telling that this class can not be initialized.
Method dthetaphi()
This method calculates the mid/spr distance between the numbers contain in two 'StatLists'.
Usage
StatList$dthetaphi(s = NA, a = 1, b = 1, theta = 1)
Arguments
s
can be a FuzzyNumberList or a TrapezoidalFuzzyNumberList.
a
real number > 0, by default a=1. It is the first parameter of a beta distribution which corresponds to a weighting measure on [0,1].
b
real number > 0, by default b=1. It is the second parameter of a beta distribution which corresponds to a weighting measure on [0,1].
theta
real number > 0, by default theta=1. It is the weight of the spread in the mid/spr distance.
Returns
a matrix containing the mid/spr distances between the two previous mentioned StatLists.
Method dwablphi()
This method calculates the (\phi
,\theta
)-wabl/ldev/rdev distance
between the numbers contained in two 'StatLists'.
Usage
StatList$dwablphi(s = NA, a = 1, b = 1, theta = 1)
Arguments
s
can be a FuzzyNumberList or a TrapezoidalFuzzyNumberList.
a
real number > 0, by default a=1. It is the first parameter of a beta distribution which corresponds to a weighting measure on [0,1].
b
real number > 0, by default b=1. It is the second parameter of a beta distribution which corresponds to a weighting measure on [0,1].
theta
real number > 0, by default theta=1. It is the weight of the ldev and rdev in the (
\phi
,\theta
)-wabl/ldev/rdev distance.
Returns
a StatList containing the (\phi
,\theta
)-wabl/ldev/rdev distances
between the two previous mentioned StatLists.
Method rho1()
This method calculates the 1-norm distance between the numbers contained in two 'StatLists'.
Usage
StatList$rho1(s = NA)
Arguments
s
can be a FuzzyNumberList or a TrapezoidalFuzzyNumberList.
Returns
a StatList containing the 1-norm distances between the two previous mentioned StatLists.
Method plot()
This method shows in a graph the inner numbers of the corresponding 'StatList'.
Usage
StatList$plot(color = "grey")
Arguments
color
is the color of the lines representing the numbers to be shown in the graph. The default value is grey, other colors can be specified, the option palette() too.
Returns
a graph with the inner numbers of the corresponding 'StatList' represented.
Method getLength()
This method returns the number of dimensions that are equivalent to the number of numbers in the corresponding 'StatList'.
Usage
StatList$getLength()
Returns
the number of dimensions that are equivalent to the number of numbers in the corresponding 'StatList'.
Method clone()
The objects of this class are cloneable with this method.
Usage
StatList$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.
Note
In order to have the documentation completed, we had had to write the documentation of this class. Taking into account that this class is part of the software design and it cannot be initialized, all its documentation is not needed, in particular the new and clone methods, apart from the Usage: section of each method documentation. All its methods can be used and can be found in FuzzyNumberList's and TrapezoidalFuzzyNumberList's documentation.
We are working to improve this issue. In case you find (almost surely existing) bugs or have recommendations for improving the method, comments are welcome to the above mentioned mail addresses.
Author(s)
Andrea Garcia Cernuda <uo270115@uniovi.es>