dpm: Calculates the Projection Median (see Durocher 2009)

Description Usage Arguments Examples

View source: R/dpm.r

Description

This function allows you to calculate the projection median approximately or exactly in 2D.

Usage

1
dpm(data, N = 10000, method = 1, exact2D = F)

Arguments

data

a nxd matrix of your data. For two dimensions, d must be 2

N

Number of vectors to generate in the Monte Carlo algorithm

method

Which Monte Carlo algorithm to use? As per Durocher et. al 2017

exact2D

calculate the pm exactly *data must be 2 dimensions

Examples

1
2
3
data<-cbind(stats::rnorm(151),stats::rnorm(151))
dpm(data)
dpm(data,exact2D=TRUE)

12ramsake/DurocherProjectionMedian documentation built on Nov. 23, 2019, 11:20 a.m.