Learn R Programming

SAFD (version 0.3)

Fmedian: Median of a fuzzy sample

Description

Given a list XX of polygonal fuzzy numbers the functions first checks (1) if each element of the lists is in the correct form (tested by checking) and (2) if the alpha-levels of all elements coincide. If all conditions are fulfilled the function calculates the (levelwise) median (which, by definition, is a fuzzy number too).

Usage

Fmedian(XX, pic = 1)

Arguments

XX
...list of polygonal fuzzy numbers with the same alpha levels (the functions implicitly checks the conditions)
pic
...numeric, if pic==1 the sample, its mean and its median are plotted.

Value

  • Given correct input XX the function returns a the median of the sample.

Details

See examples.

See Also

See Also as Fquantile

Examples

Run this code
data(XX)
V<-translator(XX[[3]],100)
YY<-vector("list",length=50)
  for(i in 1:50){
   YY[[i]]<-generator(V,,,)
   }
Q<-Fmedian(YY)

Run the code above in your browser using DataLab