Description Usage Arguments Value
This is a helper method meant to make the code more readable, and is thus highly coupled to GetPIPs. It simply enumerates the perp.dist vector with perpendicular distances between each non-PIP point and the line connecting said point's adjacent PIPs.
1 | EnumeratePerDistVector(is.pip, timeseries, perp.dist)
|
is.pip |
A logical vector, which is TRUE at the index of each point (from timeseries) which has been identified as a PIP |
timeseries |
The time series from from which PIPs are being identified |
perp.dist |
The numeric perpendicular distance vector which this function is filling with perpendicular distances |
The perp.dist vector enumerated with newly calculated perpendicular distances.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.