Usage
Func.motif(ts, global.norm, local.norm, window.size, overlap, w, a, mask.size, eps = 0.1, iter = 25, max.dist.ratio = 1.2, count.ratio.1 = 1.5, count.ratio.2 = 1.2)
Arguments
ts
is a numeric vector representing the univarate time series
global.norm
is a logical value specifying whether global standardization should be used for the whole time series
local.norm
is a logical value specifying whether local standardization should be used for each subsequences
window.size
is a integer which defines the length of the sliding window used to create subsequences
overlap
is a numeric value ranging from 0 to 1. It defines the percentage of overlapping when using sliding window to create subsquences. 0 means subsequences are created without overlaps. 1 means subsequences are created with the maximum overlap possible.
w
is an integer which defines the word size used for SAX transformation
a
is an integer which defines the alphabet size used for SAX transformation
mask.size
is the mask size used for random projection. It should be an integer ranging from 1 to the word size w
eps
is the minimum threshold for variance in subsequence and should be a numeric value. If the subsequence considered has a smaller variance than eps, it will be represented as a word using the middle alphabet. The default value is 0.1
iter
is an integer which specifies the iteration number in random projection, default value is 25
max.dist.ratio
is a numeric value used to add other possible members to a motif candidate. Default value is 1.2. Each motif candidate has two subsequences. The distance between these two candidates are calculated as a baseline, denoted as BASE. Any subsequence, whose distance to the motif candidate is smaller than max.dist.ratio*BASE, is considered as a member of that motif candidate.
count.ratio.1
defines the ratio between the iteration number and the minimum value in the collision matrix to be considered as motif candidate. Default value is 1.5. For instance, if the iter is 100, any pair of subsequence, which results in a value larger than 67 in the collision matrix, is considered as a motif candidate.
count.ratio.2
defines the ratio between the maximum counts in the collision matrix and any other count values that will be considered as potential members to a motif candidate