| trend_c {GauPro} | R 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_c
Public fields
mTrend parameters
m_lowerm lower bound
m_upperm upper bound
m_estShould m be estimated?
Methods
Public methods
Method new()
Initialize trend object
Usage
trend_c$new(m = 0, m_lower = -Inf, m_upper = Inf, m_est = TRUE, D = NA)
Arguments
mtrend initial parameters
m_lowertrend lower bounds
m_uppertrend upper bounds
m_estLogical of whether each param should be estimated
DNumber of input dimensions of data
Method Z()
Get trend value for given matrix X
Usage
trend_c$Z(X, m = self$m, params = NULL)
Arguments
Xmatrix of points
mtrend parameters
paramstrend parameters
Method dZ_dparams()
Derivative of trend with respect to trend parameters
Usage
trend_c$dZ_dparams(X, m = self$m, params = NULL)
Arguments
Xmatrix of points
mtrend values
paramsoverrides m
Method dZ_dx()
Derivative of trend with respect to X
Usage
trend_c$dZ_dx(X, m = self$m, params = NULL)
Arguments
Xmatrix of points
mtrend values
paramsoverrides m
Method param_optim_start()
Get parameter initial point for optimization
Usage
trend_c$param_optim_start(jitter = F, m_est = self$m_est)
Arguments
jitterNot used
m_estIf the trend should be estimate.
Method param_optim_start0()
Get parameter initial point for optimization
Usage
trend_c$param_optim_start0(jitter = F, m_est = self$m_est)
Arguments
jitterNot used
m_estIf the trend should be estimate.
Method param_optim_lower()
Get parameter lower bounds for optimization
Usage
trend_c$param_optim_lower(m_est = self$m_est)
Arguments
m_estIf the trend should be estimate.
Method param_optim_upper()
Get parameter upper bounds for optimization
Usage
trend_c$param_optim_upper(m_est = self$m_est)
Arguments
m_estIf the trend should be estimate.
Method set_params_from_optim()
Set parameters after optimization
Usage
trend_c$set_params_from_optim(optim_out)
Arguments
optim_outOutput from optim
Method clone()
The objects of this class are cloneable with this method.
Usage
trend_c$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
Examples
t1 <- trend_c$new()