View source: R/multivariate_projection_depth.R
projection_depth | R Documentation |
Helper function to compute the random projection depth of multivariate point(s) with respect to a multivariate data.
projection_depth(dts, dt = dts, n_projections = 500L, seed = NULL)
dts |
A matrix or data frame of size |
dt |
A matrix or dataframe of size |
n_projections |
The number of directions for random projections. By default, 500 random directions for projection are generated from a scaled uniform distribution between -1 and 1. |
seed |
The random seed to set when generating the random directions. Defaults to NULL. |
A vector containing the depth values of dts
with respect to dt
.
Oluwasegun Taiwo Ojo
msplot
for outlier detection using msplot and dir_out
for directional outlyingness.
projection_depth(dts = iris[1:5, -5], dt = iris[1:10, -5], n_projection = 7, seed = 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.