MDD {FuzzyStatTra} | R Documentation |
This function calculates the scale measure Median Distance Deviation (MDD) for a matrix of trapezoidal fuzzy numbers F
with respect to a fuzzy number U
. The employed metric in the calculation can be the 1-norm distance, the mid/spr distance or the (\varphi,\theta)
-wabl/ldev/rdev distance. The function first checks if the input matrix F
is given in the correct form (tested by checkingTra
) and also the input fuzzy number U
(tested by checking
or checkingTra
).
MDD(F, U, type, a = 1, b = 1, theta = 1/3)
F |
matrix of dimension |
U |
can be a matrix of dimension |
type |
number 1, 2 or 3: if |
a |
number >0, by default |
b |
number >0, by default |
theta |
number >0, by default |
See examples
The function returns the scale measure MDD, which is a real number.
In case you find (almost surely existing) bugs or have recommendations for improving the functions comments are welcome to the above mentioned mail addresses.
Asun Lubiano <lubiano@uniovi.es>, Sara de la Rosa de Saa <rosasara@uniovi.es>
[1] De la Rosa de Saa, S.; Lubiano M.A.; Sinova, B.; Filzmoser, P.: Robust scale estimators for fuzzy data, Advances in Data Analysis and Classification, pp. 1-28 (2015)
checkingTra
, checking
, TransfTra
, Rho1Tra
, Rho1
, DthetaphiTra
, Dthetaphi
, DwablphiTra
, Dwablphi
# Example 1:
F=SimulCASE3(10)
U=Mean(F)
MDD(F,U,3,1,2,1)
# Example 2:
F=SimulCASE2(10)
U=Median1norm(F)
MDD(F,U,2)
# Example 3:
F=SimulCASE1(100)
U=matrix(c(1,2,3,2),nrow=1)
MDD(F,U,1)
# Example 4:
F=SimulCASE1(100)
U=array(1:60,dim=c(10,2,3))
MDD(F,U,2,1,2,1)