Learn R Programming

mimiSBM (version 0.0.1.3)

CEM: Clustering Matrix : One hot encoding

Description

Clustering Matrix : One hot encoding

Usage

CEM(Z)

Value

Z a matrix N x K One-Hot-Encoded by rows, where K is the number of clusters.

Arguments

Z

a matrix N x K, with probabilities to belong of a cluster in rows for each observation.

Examples

Run this code
Z <- matrix(rnorm(12),3,4)
Z_cem <- CEM(Z)
print(Z_cem)

Run the code above in your browser using DataLab