Learn R Programming

SAFD (version 0.3)

Fquantile: Quantiles 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 chosen (levelwise) quantiles. As in the basic R-function quantile a vector p of quantiles can be calculated. The functions returns a list of quantiles (which are, by definition, fuzzy numbers too).

Usage

Fquantile(XX, p = c(0, 0.25, 0.5, 0.75, 1))

Arguments

XX
...list of polygonal fuzzy numbers with the same alpha levels (the functions implicitly checks the conditions)
p
...numeric vector of probabilities with values in [0,1]

Value

  • Given correct input XX the function returns a list of quantiles.

Details

See examples.

See Also

See Also as Fmedian, Mmean

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,,,)
   }
QQ<-Fquantile(YY,)
QQ<-Fmedian(YY)

Run the code above in your browser using DataLab