ADD {FuzzyStatTra} | R Documentation |
Average Distance Deviation of a trapezoidal fuzzy sample with respect to a fuzzy number
Description
This function calculates the scale measure Average Distance Deviation (ADD) 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
).
Usage
ADD(F, U, type, a = 1, b = 1, theta = 1/3)
Arguments
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 |
Details
See examples
Value
The function returns the scale measure ADD, which is a real number.
Note
In case you find (almost surely existing) bugs or have recommendations for improving the functions comments are welcome to the above mentioned mail addresses.
Author(s)
Asun Lubiano <lubiano@uniovi.es>, Sara de la Rosa de Saa <rosasara@uniovi.es>
References
[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)
See Also
checkingTra
, checking
, TransfTra
, Rho1Tra
, Rho1
, DthetaphiTra
, Dthetaphi
, DwablphiTra
, Dwablphi
Examples
# Example 1:
F=SimulCASE1(10)
U=Mean(F)
ADD(F,U,1)
# Example 2:
F=SimulCASE1(100)
U=Median1norm(F)
ADD(F,U,2,2,1,1)
# Example 3:
F=SimulCASE1(100)
U=matrix(c(1,2,3,2),nrow=1)
ADD(F,U,1)
# Example 4:
F=matrix(1:4,nrow=2)
U=matrix(1:4,nrow=1)
ADD(F,U,3,1,1,1)