get_distances: Get distances between a set of old points and a set of new...

View source: R/mdessence-functions.R

get_distancesR Documentation

Get distances between a set of old points and a set of new points

Description

Get distances between a set of old points and a set of new points

Usage

get_distances(old_points, new_points, dist_fn)

Arguments

old_points

n_old x n_variables matrix with rows containing the old points.

new_points

n_new x n_variables matrix with rows containing the new point.

dist_fn

A function taking as input a matrix, returning the distances between the rows of the matrix.

Value

A matrix with n_old rows and n_new columns containing the distance between each pair of old and new points.


jfukuyama/localBiplots documentation built on Jan. 10, 2023, 3:33 a.m.