summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-dtw/package.py
blob: bfb0a00be955a6530ddeb7c23c5ecfe15a6444e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *


class RDtw(RPackage):
    """Dynamic Time Warping Algorithms.

    A comprehensive implementation of dynamic time warping (DTW) algorithms in
    R.  DTW computes the optimal (least cumulative distance) alignment between
    points of two time series.  Common DTW variants covered include local
    (slope) and global (window) constraints, subsequence matches, arbitrary
    distance definitions, normalizations, minimum variance matching, and so on.
    Provides cumulative distances, alignments, specialized plot styles, etc.,
    as described in Giorgino (2009) <doi:10.18637/jss.v031.i07>."""

    cran = "dtw"

    license("GPL-2.0-or-later")

    version("1.23-1", sha256="6ed6a3b52be673ce2617b8d48723c7c488c95aab88fe2912d7e00507838e826d")
    version("1.22-3", sha256="df7cf9adf613422ddb22a160597eb5f5475ab6c67c0d790092edb7f72ba98f00")
    version("1.20-1", sha256="43ca1a47a7c81a2b5d5054da1be8b8af79a85d6f9ce7b4512e9ed91f790f60f0")
    version("1.18-1", sha256="d9dab25bdf61705f9f28dc5ca1c96a7465b269233e878516c52c01b5a0da21ad")
    version("1.17-1", sha256="0fc3afcebc58135c78abd7545a3549466ac051a058f913db16214c12141a6e4d")
    version("1.16", sha256="7d7e34c41ff6021991bcf8a913b2b6b82680018f65fdd90af2150a07457e9cdb")
    version("1.15", sha256="28ba2110d4c305f332fad93337cdae24b9de4163b8ddf33d476f9dddc63160f1")
    version("1.14-3", sha256="6989358d8d97428418c2b34ae38647efcee2e0ce095800a657d5d83d7083c9e3")

    depends_on("r@2.10.0:", type=("build", "run"))
    depends_on("r-proxy", type=("build", "run"))