estimationCellBarycenter {optimalFlow} | R Documentation |
Estimates a Wasserstein barycenter for a cluster type using a collection of partitions.
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.
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)