make_dist_fns: Creates distance function and corresponding derivative...

View source: R/mdessence-functions.R

make_dist_fnsR Documentation

Creates distance function and corresponding derivative function

Description

Creates distance function and corresponding derivative function

Usage

make_dist_fns(dist_fn, dist_deriv)

Arguments

dist_fn

Either a string or a function.

dist_deriv

Either NULL or a function.

Value

A list containing two functions, dist_fn and dist_deriv. dist_fn takes a matrix and computes a distance between the rows. dist_deriv takes two vectors, x and y, and computes \frac{\partial}{\partial y_j}d(x,y), j = 1,...,p.


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