LinePickingCDF: Get cdf for distance between two random points

Description Usage Arguments Value Note Author(s) Examples

View source: R/LinePickingCDF.R

Description

Give a shape (square, disk, ...) and parameters defining the shape, this function will give the probability density function for the distances between two Poisson distributed points in the space.

Usage

1
  LinePickingCDF(t, problem = 0, parameters, trace = FALSE)

Arguments

trace

boolean gives more info if true

t

vector of points to calculate pdf for.

problem
  • 0 Square, with side length parameters[0]

  • 1 Disk, with radius parameters[0]

  • 2 Hyper-ball, dimension parameters[0], radius parameters[1]

  • 3 Rectangle, side lengths parameters[0], parameters[1]

  • 4 Line, length parameters[0]

  • 5 Cube, side length parameters[0]

  • 6 Sphere, with radius parameters[0]

  • 7 SphereGeodesic, with radius parameters[0]

  • 8 PrismGeodesic, TBA

parameters

the parameter necessary to describe the space given by problem.

Value

vector of probability density function values for each element in t.

Note

August 25 2012

Author(s)

Eric Parsonage, Matt Roughan, Jono Tuke

Examples

1
2
3
t <- seq(0,1,l=1000)
y <- LinePickingCDF(t=t,problem=0,para=1)
plot(t,y,type='l')

mroughan/LinePicking documentation built on May 23, 2019, 7:48 a.m.