Learn R Programming

SAFD (version 2.1)

Mmean: 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 pic=1 then the sample mean of XX is printed. By default pic=0.

Value

Given input XX in the correct format the function returns the Minkowski mean of the polygonal fuzzy numbers contained in the list XX.

Details

See examples

See Also

See Also as checking, translator, Msum, sc_mult, Bvar

Examples

Run this code
# NOT RUN {
#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
# }

Run the code above in your browser using DataLab