estimationCellBarycenter: estimationCellBarycenter

View source: R/estimationCellBarycenter.R

estimationCellBarycenterR Documentation

estimationCellBarycenter

Description

Estimates a Wasserstein barycenter for a cluster type using a collection of partitions.

Usage

estimationCellBarycenter(cell, cytometries)

Arguments

cell

Name of the cluster of interest.

cytometries

List of clusterings.

Value

A list representing the (1-)barycenter:

mean

Mean of the barycenter.

cov

Covariance of the barycenter.

weight

Weight associated to the barycenter.

type

Type of the cluster.

Examples

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)


HristoInouzhe/optimalFlow documentation built on April 23, 2023, 5:45 p.m.