frechet_func: Compute the Frechet functional/The objective value of the...

Description Usage Arguments Value

View source: R/frechet_func.R

Description

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

Usage

1

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.


WSGeometry documentation built on Dec. 15, 2021, 1:08 a.m.