Description Usage Arguments Value
This function computes the objective value of the barycenter problem for a given measure and a given dataset of measures.
1 | frechet_func(bary, data)
|
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. |
A real number specifying the Frechet value of the input object for the given dataset.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.