Tn {FuzzyStatTra} | R Documentation |
Tn scale measure of a trapezoidal fuzzy sample
Description
This function calculates the scale measure Tn for a matrix of trapezoidal fuzzy numbers F
. 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
).
Usage
Tn(F, type, a = 1, b = 1, theta = 1/3)
Arguments
F |
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 Tn, 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>
See Also
checkingTra
, Rho1Tra
, DthetaphiTra
, DwablphiTra
Examples
# Example 1:
F=SimulCASE1(10)
Tn(F,1)
# Example 2:
F=matrix(c(1,2,3,4),nrow=2)
Tn(F,2,5,1,0.5)