StMatrixCalc {knnwtsim}R Documentation

Calculate Temporal Similarity Matrix

Description

Generates and returns an n x n matrix by calculating the absolute difference for each possible pair of points in a vector of the time orders of each point in a series, then converts dissimilarity matrix to a similarity matrix using 1 / (D_t + 1).

Usage

StMatrixCalc(v)

Arguments

v

numeric vector with the time order corresponding to each point in the response series.

Value

numeric matrix of temporal similarities for the vector v.

See Also

TempAbsDissimilarity() for the function used to calculate absolute differences.

Examples

StMatrixCalc(c(1, 2, 3))

[Package knnwtsim version 1.0.0 Index]