Documentation ¶
Index ¶
- func ApplyExclusionZone(profile []float64, idx, zoneSize int)
- func ArcCurve(mpIdx []int) []float64
- func BinarySplit(lb, ub int) []int
- func Iac(x float64, n int) float64
- func MovMeanStd(ts []float64, m int) ([]float64, []float64, error)
- func MuInvN(a []float64, w int) ([]float64, []float64)
- func Sq2s(a []float64) float64
- func Sum2s(a []float64, w int) []float64
- func TwoSquare(a []float64) ([]float64, []float64)
- func ZNormalize(ts []float64) ([]float64, error)
- type Batch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyExclusionZone ¶
ApplyExclusionZone performs an in place operation on a given matrix profile setting distances around an index to +Inf
func ArcCurve ¶
ArcCurve computes the arc curve (histogram) which is uncorrected for. This loops through the matrix profile index and increments the counter for each index that the destination index passes through start from the index in the matrix profile index.
func BinarySplit ¶ added in v0.3.4
func Iac ¶
Iac represents the ideal arc curve with a maximum of n/2 and 0 values at 0 and n-1. The derived equation to ensure the requirements is -(sqrt(2/n)*(x-n/2))^2 + n/2 = y
func MovMeanStd ¶
MovMeanStd computes the mean and standard deviation of each sliding window of m over a slice of floats. This is done by one pass through the data and keeping track of the cumulative sum and cumulative sum squared. s between these at intervals of m provide a total of O(n) calculations for the standard deviation of each window of size m for the time series ts.
func ZNormalize ¶
ZNormalize computes a z-normalized version of a slice of floats. This is represented by y[i] = (x[i] - mean(x))/std(x)
Types ¶
type Batch ¶ added in v0.3.6
Batch indicates which index to start at and how many to process from that index.
func DiagBatchingScheme ¶ added in v0.3.6
DiagBatchingScheme computes a more balanced batching scheme based on the diagonal nature of computing matrix profiles. Later batches get more to work on since those operate on less data in the matrix.