PairwiseMetric#

class skfda.misc.metrics.PairwiseMetric(metric)[source]#

Pairwise metric function.

Computes a given metric pairwise. The matrix returned by the pairwise metric is a matrix with as many rows as observations in the first object and as many columns as observations in the second one. Each element (i, j) of the matrix is the distance between the ith observation of the first object and the jth observation of the second one.

Parameters:

metric (Metric[_MapAcceptableT]) – Metric between two elements of a metric space.

Methods

Examples using skfda.misc.metrics.PairwiseMetric#

Radius neighbors classification

Radius neighbors classification