Various distance functions
Various distance functions
(->acm-distance distance)
Create DistanceMeasure Apache Commons Math object based on given distance function.
Create DistanceMeasure Apache Commons Math object based on given distance function.
(bound distance)
(bound distance diameter)
Create relative distance function to be bound by a diameter
(default: by 1.0
).
Create relative distance function to be bound by a `diameter` (default: by `1.0`).
(canberra-1d v1 v2)
Canberra distance for doubles
Canberra distance for doubles
(euclidean-1d v1 v2)
Euclidean distance for doubles
Euclidean distance for doubles
(euclidean-sq v1 v2)
Squared Euclidean distance
Squared Euclidean distance
(euclidean-sq-1d v1 v2)
Squared Euclidean distance for doubles
Squared Euclidean distance for doubles
(mahalanobis cov)
(mahalanobis x mean cov)
Mahalonobis distance for given covariance (seq of seqs) matrix.
Mahalonobis distance for given covariance (seq of seqs) matrix.
(mahalanobis-sq cov)
(mahalanobis-sq x mean cov)
Squared Mahalonobis distance for given covariance (seq of seqs) matrix.
Squared Mahalonobis distance for given covariance (seq of seqs) matrix.
(minkowski p)
(minkowski p weights)
(minkowski v1 v2 p)
(minkowski v1 v2 p weights)
Minkowski distance for order p
and optional weights
for each dimension.
Minkowski distance for order `p` and optional `weights` for each dimension.
(periodic-euclidean v1 v2 w)
Euclidean distance with periodic boundaries
Euclidean distance with periodic boundaries
(shoenberg-transform distance)
(shoenberg-transform distance lambda)
Create relative distance function by applying Shoenberg transform.
Create relative distance function by applying Shoenberg transform.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close