Description Usage Arguments Value References
This is a helper function for EnumeratePerDist, which in turn is a helper function for GetPIPs. Thus, these functions are highly coupled, and exist simply to make the code more readable. This function is made available to the user because it could be useful on its own.
1 | GetPerpDist(point, left.point, right.point)
|
point |
The point (xts object with length=1) in the middle. Distance will be calculated between this point and the line. |
left.point |
The left point (xts object with length=1) that will constitute the left endpoind of the line |
right.point |
The right point (xts object with length=1) that will constitute the right endpoint of the line |
The numeric perpendicular distance
Wikipedia. Distance from a point to a line — wikipedia, the free encyclopedia, 2016. [Online; accessed 26-July-2016].
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.