Computes the Ray Shooting depth of a point with respect to a bivariate data set.

1 |

`q` |
Numerical vector whose depth is to be calculated. Data needs to be 2-dimensional. |

`pt` |
The data as a matrix, data frame or list. If it is a matrix or data frame, then each row is viewed as one bivariate observation. If it is a list, all components must be numerical vectors of equal length (coordinates of observations). |

`...` |
For future use. |

In dimension 2, calculates ray shooting depth of a given point with respect to the point set. Time complexity of the simple algorithms implemented is O(n log n).

Returns the exact depth of bivariate point `q`

with respect to data set `pt`

, the number of line segments interested by a ray from `q`

, minimum over all rays.

Nabil Mustafa, Saurabh Ray, and Mudassir Shabbir.

N. Mustafa, S. Ray, and M. Shabbir, Statistical Data Depth of Pointsets in the Plane,*in prep.*.

1 2 3 4 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.