EnumeratePerDistVector: Enumerate the per.dist Vector with Perpendicular Distances

Description Usage Arguments Value

Description

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.

Usage

1
EnumeratePerDistVector(is.pip, timeseries, perp.dist)

Arguments

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

Value

The perp.dist vector enumerated with newly calculated perpendicular distances.


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