estimationCellBarycenter: estimationCellBarycenter

Description Usage Arguments Value Examples

View source: R/estimationCellBarycenter.R

Description

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

Usage

1
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

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)

optimalFlow documentation built on Nov. 8, 2020, 6:59 p.m.