Skip to contents

Takes the output of distantia() to return a data frame with one row per time series with the stats of its dissimilarity scores with all other time series.

Usage

momentum_stats(df = NULL)

Arguments

df

(required, data frame) Output of momentum(), momentum_ls(), or momentum_dtw(). Default: NULL

Value

data frame

Examples

tsl <- tsl_simulate(
  n = 5,
  irregular = FALSE
  )

df <- distantia(
  tsl = tsl,
  lock_step = TRUE
  )

df_stats <- distantia_stats(df = df)

df_stats
#>   name     mean      min       q1   median       q3      max        sd    range
#> 1    A 3.205161 1.235888 2.313762 3.089948 3.981347 5.404862 1.7407727 4.168973
#> 2    B 3.598476 1.235888 2.673570 3.470935 4.395840 6.216145 2.0549913 4.980257
#> 3    C 3.689692 2.673053 3.032862 3.740068 4.396898 4.605579 0.9250679 1.932526
#> 4    D 4.389094 3.506842 3.718515 4.058205 4.728784 5.933122 1.0841632 2.426279
#> 5    E 5.539927 4.605579 5.205041 5.668992 6.003877 6.216145 0.7078421 1.610566