Skip to content

[source]

Canberra#

A weighted version of the Manhattan distance, Canberra examines the sum of a series of fractional differences between two samples. Canberra can be very sensitive when both coordinates are near zero.

Canberra(a,b)=i=1n|aibi||ai|+|bi|

Data Type Compatibility: Continuous

Parameters#

This kernel does not have any parameters.

Example#

use Rubix\ML\Kernels\Distance\Canberra;

$kernel = new Canberra();

References#


  1. G. N. Lance et al. (1967). Mixed-data classificatory programs I. Agglomerative Systems. 


Last update: 2021-03-03