View source: R/mdessence-functions.R
make_dist_fns | R Documentation |
Creates distance function and corresponding derivative function
make_dist_fns(dist_fn, dist_deriv)
dist_fn |
Either a string or a function. |
dist_deriv |
Either NULL or a function. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.