cov.RQ.beta0: Computationally cheap estimate for beta0 for cov.RQ.

Description Usage Arguments Examples

View source: R/covariance-functions.R

Description

Computationally cheap estimate for beta0 for cov.RQ.

Usage

1
cov.RQ.beta0(X, locations, k)

Arguments

X

The dataset being analysed with stpca

locations

Matrix containing the location of each feature in rows

k

Latent dimensionality used in stpca

Examples

1
2
3
4
5
6
7
8
# Construct some synthetic data, initialise beta for the RQ kernel from this dataset.
library(functional)
n = 10; k = 4; dim=c(10, 10)
kern = Curry(cov.noisy.SE, beta=log(c(2, 0.4, 0.1)))
synth = synthesize_data_kern(n, k, dim, kern, noisesd=0.2)
beta0 = cov.RQ.beta0(synth$X, synth$grid, k)
stopifnot(length(beta0) == 3)
stopifnot(all(is.finite(beta0)))

JimSkinner/spca documentation built on Aug. 19, 2018, 7 a.m.