Skip to contents

This function computes the similarity between two objects using a specified similarity metric.

Usage

similarity(x, y, method, ...)

Arguments

x

The first object to compare.

y

The second object to compare.

method

A character string specifying the similarity metric to be used.

...

Additional arguments passed to the similarity computation method.

Value

A numeric value representing the similarity between the two input objects.

See also

Other similarity: similarity.scanpath()

Examples

# Example usage of the similarity function
object1 <- # first object data
object2 <- # second object data
similarity_value <- similarity(object1, object2, method = "some_method")
#> Error: object 'object1' not found