setDefaultDistance | R Documentation |
Set the default distance function for a descriptor type. This is the distance function that will be used if none is given for a particular function call.
setDefaultDistance(descriptorType, distance)
descriptorType |
The type of the descriptor to set a distance function for. Built-in values are "ap" and "fp". Additional values can be set as well. |
distance |
A distance function taking two descriptor objects (as returned by toObject in a descriptor transform,
see |
No return value.
Kevin Horan
addTransform
setDefaultDistance("ap", function(d1,d2) 1-cmp.similarity(d1,d2) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.