Mmean {SAFD} | R Documentation |
Minkowski mean
Description
Given a sample XX
of polygonal fuzzy numbers the Minkowski-mean of the sample is calculated. The function fist calls Msum
to check if XX
has the correct format and, in case yes, sc_mult
is used to calculate the Minkowski-mean of the fuzzy sample XX
. If pic
=1 then the sample and its mean are plotted, otherwise no plot is produced.
Usage
Mmean(XX, pic = 0)
Arguments
XX |
...should be a list of polygonal fuzzy numbers (the functions implicitly checks the conditions) |
pic |
...numeric, if |
Details
See examples
Value
Given input XX
in the correct format the function returns the Minkowski mean of the polygonal fuzzy numbers contained in the list XX
.
Note
In case you find (almost surely existing) bugs or have recommendations for improving the functions comments are welcome to the above mentioned mail addresses.
Author(s)
Wolfgang Trutschnig <wolfgang@trutschnig.net>, Asun Lubiano <lubiano@uniovi.es>
See Also
See Also as checking
, translator
, Msum
, sc_mult
, Bvar
Examples
#Example 1:
data(XX)
A<-Mmean(XX,1)
X<-translator(XX[[1]],50)
Y<-translator(XX[[2]],50)
Z<-translator(XX[[3]],50)
YY<-list(X,Y,Z)
A<-Mmean(YY,pic=1)
#Example 2:
data(Trees)
Species1_Mean<-Mmean(Trees[[1]],1)
Species1_Mean
Species2_Mean<-Mmean(Trees[[2]],1)
Species2_Mean
Species3_Mean<-Mmean(Trees[[3]],1)
Species3_Mean