trend_0: Trend R6 class

trend_0R Documentation

Trend R6 class

Description

Trend R6 class

Trend R6 class

Format

R6Class object.

Value

Object of R6Class with methods for fitting GP model.

Super class

GauPro::GauPro_trend -> GauPro_trend_0

Public fields

m

Trend parameters

m_lower

m lower bound

m_upper

m upper bound

m_est

Should m be estimated?

Methods

Public methods


Method new()

Initialize trend object

Usage
trend_0$new(m = 0, m_lower = 0, m_upper = 0, m_est = FALSE, D = NA)
Arguments
m

trend initial parameters

m_lower

trend lower bounds

m_upper

trend upper bounds

m_est

Logical of whether each param should be estimated

D

Number of input dimensions of data


Method Z()

Get trend value for given matrix X

Usage
trend_0$Z(X, m = self$m, params = NULL)
Arguments
X

matrix of points

m

trend parameters

params

trend parameters


Method dZ_dparams()

Derivative of trend with respect to trend parameters

Usage
trend_0$dZ_dparams(X, m = m$est, params = NULL)
Arguments
X

matrix of points

m

trend values

params

overrides m


Method dZ_dx()

Derivative of trend with respect to X

Usage
trend_0$dZ_dx(X, m = self$m, params = NULL)
Arguments
X

matrix of points

m

trend values

params

overrides m


Method param_optim_start()

Get parameter initial point for optimization

Usage
trend_0$param_optim_start(jitter, trend_est)
Arguments
jitter

Not used

trend_est

If the trend should be estimate.


Method param_optim_start0()

Get parameter initial point for optimization

Usage
trend_0$param_optim_start0(jitter, trend_est)
Arguments
jitter

Not used

trend_est

If the trend should be estimate.


Method param_optim_lower()

Get parameter lower bounds for optimization

Usage
trend_0$param_optim_lower(jitter, trend_est)
Arguments
jitter

Not used

trend_est

If the trend should be estimate.


Method param_optim_upper()

Get parameter upper bounds for optimization

Usage
trend_0$param_optim_upper(jitter, trend_est)
Arguments
jitter

Not used

trend_est

If the trend should be estimate.


Method set_params_from_optim()

Set parameters after optimization

Usage
trend_0$set_params_from_optim(optim_out)
Arguments
optim_out

Output from optim


Method clone()

The objects of this class are cloneable with this method.

Usage
trend_0$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

t1 <- trend_0$new()

GauPro documentation built on April 11, 2023, 6:06 p.m.