This function computes the objective value of the barycenter problem for a given measure and a given dataset of measures.
frechet_func(bary, data)
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.
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.