extractMass {evclust} | R Documentation |
Creates an object of class "credpart"
Description
extractMass
computes different ouputs (hard, fuzzy, rough partions, etc.)
from a credal partition and creates an object of class "credpart".
Usage
extractMass(
mass,
F,
g = NULL,
S = NULL,
method,
crit = NULL,
Kmat = NULL,
trace = NULL,
D = NULL,
W = NULL,
J = NULL,
param = NULL
)
Arguments
mass |
A credal partition (a matrix of n rows and f columns, where n is the number of objects and f is the number of focal sets). |
F |
Matrix (f,c) of focal sets. If the empty set is a focal set, it must correspond to the first row of F. |
g |
A c x d matrix of prototypes. |
S |
A list of length f containing the matrices |
method |
The method used to construct the credal partition (a character string). |
crit |
The value of the optimized criterion (depends on the method used). |
Kmat |
The matrix of degrees of conflict. Same size as D (for method |
trace |
The trace of criterion values (for methods |
D |
The normalized dissimilarity matrix (for method |
W |
The weight matrix (for method |
J |
The matrix of indices (for method |
param |
A method-dependent list of parameters. |
Details
This function collects varied information on a credal partition and stores it in
an object of class "credpart". The lower and upper
approximations of clusters define rough partitions. They can be computed in two ways:
either from the set of clusters with maximum mass, or from the set of non dominated clusters.
A cluster \omega_k
is non dominated if pl(\omega_k)\ge bel(\omega_l)
for
all l different from k. Once a set of cluster Y_i
has been computed for each object,
object i belongs to the lower approximation of cluster k if Y_i={\omega_k}
. It
belongs to the upper approximation of cluster k if \omega_k \in Y_i
. See
Masson and Denoeux (2008) for more details, and Denoeux and Kanjanatarakul (2016) for
the interval dominance rule. The function creates an object of class "credpart"
.
There are three methods for this class: plot.credpart
,
summary.credpart
and predict.credpart
.
Value
An object of class "credpart" with the following components:
- method
The method used to construct the credal partition (a character string).
- F
Matrix of focal sets. The first row always corresponds to the empty set.
- conf
Masses assigned to the empty set, vector of length n.
- mass
Mass functions, matrix of size (n,f).
- mass.n
Normalized mass functions, matrix of size (n,f-1).
- g
The prototypes (if defined).
- S
The matrices
S_j
defining the metrics for each cluster and each group of cluster (if defined).- pl
Unnormalized plausibilities of the singletons, matrix of size (n,c).
- pl.n
Normalized plausibilities of the singletons, matrix of size (n,c).
- p
Probabilities derived from pl by the plausibility transformation, matrix of size (n,c).
- bel
Unnormalized beliefs of the singletons, matrix of size (n,c).
- bel.n
Normalized beliefs of the singletons, matrix of size (n,c).
- y.pl
Maximum plausibility clusters, vector of length n.
- y.bel
Maximum belief clusters, vector of length n.
- betp
Unnormalized pignistic probabilities of the singletons, matrix of size (n,c).
- betp.n
Normalized pignistic probabilities of the singletons, matrix of size (n,c).
- Y
Sets of clusters with maximum mass, matrix of size (n,c).
- outlier
n-vector of 0's and 1's, indicating which objects are outliers. An outlier is an object such that the largest mass is assigned to the empty set.
- lower.approx
Lower approximations of clusters, a list of length c. Each element lower.approx[[i]] is a vector of object indices.
- upper.approx
Upper approximations of clusters, a list of length c. Each element upper.approx[[i]] is a vector of object indices.
- Ynd
Sets of clusters selected by the interval dominance rule, matrix of size (n,c).
- lower.approx.nd
Lower approximations of clusters using the interval dominance rule, a list of length c. Each element lower.approx.nd[[i]] is a vector of objects.
- upper.approx.nd
Upper approximations of clusters using the interval dominance rule, a list of length c. Each element upper.approx.nd[[i]] is a vector of objects.
- N
Average nonspecificity.
- crit
The value of the optimized criterion (depends on the method used).
- Kmat
The matrix of degrees of conflict. Same size as D (for method
kevclus
).- D
The normalized dissimilarity matrix (for method
kevclus
).- trace
The trace of criterion values (for methods
kevclus
andEkNNclus
).- W
The weight matrix (for method
EkNNclus
).- J
The matrix of indices (for method
kevclus
).- param
A method-dependent list of parameters.
References
T. Denoeux and O. Kanjanatarakul. Beyond Fuzzy, Possibilistic and Rough: An Investigation of Belief Functions in Clustering. 8th International conference on soft methods in probability and statistics, Rome, 12-14 September, 2016.
M.-H. Masson and T. Denoeux. ECM: An evidential version of the fuzzy c-means algorithm. Pattern Recognition, Vol. 41, Issue 4, pages 1384-1397, 2008.
See Also
plot.credpart
, summary.credpart
Examples
## Not run:
## Four-class data
data(fourclass)
x<-fourclass[,1:2]
y<-fourclass[,3]
D<-as.matrix(dist(x))^2
clus<-recm(D,c=4,delta=10,ntrials=1)
summary(clus)
plot(clus,X=x,mfrow=c(1,1),ytrue=y,Outliers=TRUE)
## End(Not run)