apply_similarity: Apply similarity function to rows of a matrix

View source: R/metric_utils.R

apply_similarityR Documentation

Apply similarity function to rows of a matrix

Description

Apply similarity function to rows of a matrix

Usage

apply_similarity(idx, mat, similarity, ...)

Arguments

idx

vector of length two containing row indices

mat

a matrix

similarity

similarity function to apply

...

additional parameters to be passed to the similarity function

Value

a scalar


Rwclust documentation built on July 25, 2022, 1:05 a.m.