setDefaultDistance: Set the default distance function for a descriptor type

Description Usage Arguments Value Author(s) See Also Examples

View source: R/measures.R

Description

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.

Usage

1
setDefaultDistance(descriptorType, distance)

Arguments

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 \ ink{addTransform} for details), and returning a distance value.

Value

No return value.

Author(s)

Kevin Horan

See Also

addTransform

Examples

1
	setDefaultDistance("ap", function(d1,d2) 1-cmp.similarity(d1,d2) )

eiR documentation built on Nov. 8, 2020, 6:17 p.m.