Learn R Programming

WSGeometry (version 1.2.1)

frechet_func: Compute the Frechet functional/The objective value of the barycenter problem

Description

This function computes the objective value of the barycenter problem for a given measure and a given dataset of measures.

Usage

frechet_func(bary, data)

Arguments

bary

An object representing a measure, for which the Frechet value should be computed. Should be one of the following: A matrix, representing an image; A path to a file containing an image; A wpp-object; A pp-object; A list containing an entry named `positions` with the support of the measure and an entry named `weights` containing the weights of the support points; A list containing en entry named `positions`` specifying the support of a measure with uniform weights.

data

A list of objects which should be compared to bary. Each element should be one of the following: A matrix, representing an image; A path to a file containing an image; A wpp-object; A pp-object; A list containing an entry named `positions` with the support of the measure and an entry named `weights` containing the weights of the support points; A list containing en entry named `positions`` specifying the support of a measure with uniform weights.

Value

A real number specifying the Frechet value of the input object for the given dataset.