OneDimensional Module

Module to compute Distances between 1D Distributions

Functions and values

Function or value Description

cdfDistance p xs ys

Full Usage: cdfDistance p xs ys

Parameters:
    p : int -
    xs : float[] -
    ys : float[] -

Returns: float

Distance between two 1D distributions. p has to be positive

p : int

xs : float[]

ys : float[]

Returns: float

Example

cdfDistanceWeighted p xs ys xWeights yWeights

Full Usage: cdfDistanceWeighted p xs ys xWeights yWeights

Parameters:
    p : int -
    xs : float[] -
    ys : float[] -
    xWeights : float[] -
    yWeights : float[]

Returns: float

Distance between two 1D distributions. p has to be positive

p : int

xs : float[]

ys : float[]

xWeights : float[]

yWeights : float[]
Returns: float

Example

energyDistance xs ys

Full Usage: energyDistance xs ys

Parameters:
    xs : float[] -
    ys : float[] -

Returns: float

Energy distance between two 1D distributions

xs : float[]

ys : float[]

Returns: float

Example

energyDistanceWeighted xs ys xWeights yWeights

Full Usage: energyDistanceWeighted xs ys xWeights yWeights

Parameters:
    xs : float[] -
    ys : float[] -
    xWeights : float[] -
    yWeights : float[] -

Returns: float

Weighted Energy Distance between two 1D distributions

xs : float[]

ys : float[]

xWeights : float[]

yWeights : float[]

Returns: float

Example

wassersteinDistance xs ys

Full Usage: wassersteinDistance xs ys

Parameters:
    xs : float[] -
    ys : float[] -

Returns: float

Wasserstein distance between two 1D distributions

xs : float[]

ys : float[]

Returns: float

Example

wassersteinDistanceWeighted xs ys xWeights yWeights

Full Usage: wassersteinDistanceWeighted xs ys xWeights yWeights

Parameters:
    xs : float[] -
    ys : float[] -
    xWeights : float[] -
    yWeights : float[] -

Returns: float

Weighted Wasserstein Distance between two 1D distributions

xs : float[]

ys : float[]

xWeights : float[]

yWeights : float[]

Returns: float

Example