nll_1taper: First Tapering Implementation

Description Usage Arguments Details Value Functions Examples

View source: R/RcppExports.R

Description

The function implements the first tapering method described in the Covariance Tapering paper.

Usage

1
2
3
nll_1taper(x, n, good_dists, taps, ia, ja, z, rescol)

nll_1taper_parallel(x, n, good_dists, taps, ia, ja, z, rescol, cores)

Arguments

x

A double

n

A double that indicates the matrix row/col.

good_dists

A VectorXd that contains the distances which meet tapering requirements

taps

A VectorXd results of applying the taper function

ia

A VectorXd containing the ordered row indices

ja

A VectorXd containing the ordered column indices

z

A VectorXd element position in matrix

rescol

An int that contains how many non-zero elements should be in a column.

cores

An int that indicates the number of cores to divide the task over.

Details

Currently the EIGEN sparse matrix cholesky decomposition differs from that of SPAM. As a result, the forward solve step finds a different vector. This in turn returns a higher distval.

Value

A double

Functions

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(anom1962)
d = rdist_earth1(loc)
setup.eigen = make_tapersetup_eigen(d,taprange = 50)
val = nll_1taper(20, setup.eigen$n,
                 setup.eigen$good.dists,
                 setup.eigen$taps,
                 setup.eigen$ia,
                 setup.eigen$ja,
                 z,
                 setup.eigen$rescol)

coatless/pims_bigdata documentation built on May 13, 2019, 8:46 p.m.