summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-fpc/package.py
blob: 9f6dc7f73b2f016e4da065353f4841829d002ec6 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# 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 RFpc(RPackage):
    """Flexible Procedures for Clustering.

    Various methods for clustering and cluster validation. Fixed point
    clustering. Linear regression clustering. Clustering by  merging Gaussian
    mixture components. Symmetric  and asymmetric discriminant projections for
    visualisation of the  separation of groupings. Cluster validation
    statistics for distance based clustering including corrected Rand index.
    Standardisation of cluster validation statistics by random clusterings and
    comparison between many clustering methods and numbers of clusters based on
    this.   Cluster-wise cluster stability assessment. Methods for estimation
    of  the number of clusters: Calinski-Harabasz, Tibshirani and Walther's
    prediction strength, Fang and Wang's bootstrap stability.
    Gaussian/multinomial mixture fitting for mixed  continuous/categorical
    variables. Variable-wise statistics for cluster interpretation. DBSCAN
    clustering. Interface functions for many  clustering methods implemented in
    R, including estimating the number of clusters with kmeans, pam and clara.
    Modality diagnosis for Gaussian mixtures. For an overview see
    package?fpc."""

    cran = "fpc"

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

    version("2.2-10", sha256="99b4548f2eca1a092a31bc2fa4e4bd1d6b50fdfacf3218588c879ceec99147d2")
    version("2.2-9", sha256="29b0006e96c8645645d215d3378551bd6525aaf45abde2d9f12933cf6e75fa38")
    version("2.2-3", sha256="8100a74e6ff96b1cd65fd22494f2d200e54ea5ea533cfca321fa494914bdc3b7")
    version("2.2-2", sha256="b6907019eb161d5c8c814cf02a4663cc8aae6322699932881ce5b02f45ecf8d3")
    version("2.1-10", sha256="5d17c5f475c3f24a4809678cbc6186a357276240cf7fcb00d5670b9e68baa096")

    depends_on("r@2.0.0:", type=("build", "run"))
    depends_on("r@2.0:", type=("build", "run"), when="@2.2-10:")
    depends_on("r-mass", type=("build", "run"))
    depends_on("r-cluster", type=("build", "run"))
    depends_on("r-mclust", type=("build", "run"))
    depends_on("r-flexmix", type=("build", "run"))
    depends_on("r-prabclus", type=("build", "run"))
    depends_on("r-class", type=("build", "run"))
    depends_on("r-diptest", type=("build", "run"))
    depends_on("r-robustbase", type=("build", "run"))
    depends_on("r-kernlab", type=("build", "run"))

    depends_on("r-trimcluster", type=("build", "run"), when="@:2.1-10")
    depends_on("r-mvtnorm", type=("build", "run"), when="@:2.2-2")