Description Usage Arguments Value Examples
View source: R/estimationCellBarycenter.R
Estimates a Wasserstein barycenter for a cluster type using a collection of partitions.
1 | estimationCellBarycenter(cell, cytometries)
|
cell |
Name of the cluster of interest. |
cytometries |
List of clusterings. |
A list representing the (1-)barycenter:
Mean of the barycenter.
Covariance of the barycenter.
Weight associated to the barycenter.
Type of the cluster.
1 2 3 4 5 6 | partition1 <- list(list(mean = c(1, 1), cov = diag(1, 2), weight = 0.5, type = '1'),
list(mean = c(-1, -1), cov = diag(1, 2), weight = 0.5, type = '2'))
partition2 <- list(list(mean = c(1, -1), cov = diag(1, 2), weight = 0.5, type = '1'),
list(mean = c(-1, 1), cov = diag(1, 2), weight = 0.5, type = '2'))
cytometries <- list(partition1, partition2)
estimationCellBarycenter('1',cytometries)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.