Mmean {SAFD} | R Documentation |
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
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.
Mmean(XX, pic = 0)
XX |
...should be a list of polygonal fuzzy numbers (the functions implicitly checks the conditions) |
pic |
...numeric, if pic =1 then the sample mean of XX is printed. By default pic =0.
|
See examples
Given input XX
in the correct format the function returns the Minkowski mean of the polygonal fuzzy numbers contained in the list XX
.
In case you find (almost surely existing) bugs or have recommendations for improving the functions comments are welcome to the above mentioned mail addresses.
Wolfgang Trutschnig <wolfgang.trutschnig@softcomputing.es>, Asun Lubiano <lubiano@uniovi.es>
See Also as checking
, Msum
, sc_mult
,translator
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) # X<-data.frame(cbind(x=c(-2,-0.75,-0.25,0.5,1),alpha=c(0.3,0,1,0,0.3))) Y<-data.frame(cbind(x=c(-2,-0.75,-0.25,0.5,1),alpha=c(0,0.3,1,0,0.3))) Z<-data.frame(cbind(x=c(-2,-0.75,-0.25,0.5,1),alpha=c(0,0.6,1,1,0))) ZZ<-list(X,Y,Z) Mmean(ZZ)