GetPerpDist: Get the Perpendicular Distance Between Point and the line...

Description Usage Arguments Value References

Description

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.

Usage

1
GetPerpDist(point, left.point, right.point)

Arguments

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

Value

The numeric perpendicular distance

References

Wikipedia. Distance from a point to a line — wikipedia, the free encyclopedia, 2016. [Online; accessed 26-July-2016].


joshmarsh/TSPatternQuery documentation built on May 19, 2019, 8:53 p.m.