summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-gwmodel/package.py
blob: a62caf779964d634754755f828aac08d3969e15d (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
# Copyright 2013-2022 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 import *


class RGwmodel(RPackage):
    """Geographically-Weighted Models

    Techniques from a particular branch of spatial statistics,termed
    geographically-weighted (GW) models. GW models suit situations when data
    are not described well by some global model, but where there are spatial
    regions where a suitably localised calibration provides a better
    description. 'GWmodel' includes functions to calibrate: GW summary
    statistics (Brunsdon et al., 2002) <doi:10.1016/s0198-9715(01)00009-6>, GW
    principal components analysis (Harris et al., 2011)
    <doi:10.1080/13658816.2011.554838>, GW discriminant analysis (Brunsdon et
    al., 2007) <doi:10.1111/j.1538-4632.2007.00709.x> and various forms of GW
    regression (Brunsdon et al., 1996)
    <doi:10.1111/j.1538-4632.1996.tb00936.x>; some of which are provided in
    basic and robust (outlier resistant) forms."""

    homepage = "http://gwr.nuim.ie/"
    url      = "https://cloud.r-project.org/src/contrib/GWmodel_2.0-9.tar.gz"
    list_url = "https://cloud.r-project.org/src/contrib/Archive/GWmodel"

    version('2.2-2', sha256='4e2b221b85fbc828ffc4f057c137ded849afcaac2a75c27d2d6d0a6db17f8a06')
    version('2.1-3', sha256='3e1a36fddf8e64f61d548067bb043216f8d12069d814a4cbf07a9cae0b310af6')
    version('2.1-1', sha256='91241b4e26d423a54c7c6784ef5159759058a5dafdff18a1ea8451faf979d1f3')
    version('2.0-9', sha256='b479af2c19d4aec30f1883d00193d52e342c609c1badcb51cc0344e4404cffa7')

    depends_on('r@3.0.0:', type=('build', 'run'))
    depends_on('r-maptools@0.5-2:', type=('build', 'run'))
    depends_on('r-robustbase', type=('build', 'run'))
    depends_on('r-sp', type=('build', 'run'))
    depends_on('r-sp@1.4-0:', when='@2.2-2:', type=('build', 'run'))
    depends_on('r-rcpp', type=('build', 'run'))
    depends_on('r-spatialreg', type=('build', 'run'))
    depends_on('r-spacetime', type=('build', 'run'))
    depends_on('r-spdep', type=('build', 'run'))
    depends_on('r-fnn', when='@2.1-1:', type=('build', 'run'))
    depends_on('r-rcpparmadillo', type=('build', 'run'))
    depends_on('gmake', type='build')