filter_dtm | R Documentation |
filter_dtm
computes the Distance to measure filter.
filter_dtm(dist, k, p = 2, ...)
dist |
The distance matrix. |
k |
A numeric scalar deciding the number of neighbors to be considered |
p |
An optional numeric scalar denoting the exponent. |
... |
Further arguments. |
Distance to measure filter function is defined as f(x_i;k) = \frac{1}{k}∑_{j=2}^{k+1} d^p(x_i,x_{(j)})^{1/p}.
A matrix object of filter values.
tp_data = chicken_generator(1) tp_dist = dist(tp_data[,-1]) filter_dtm(dist = tp_dist, k=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.