| White {GauPro} | R Documentation |
White noise Kernel R6 class
Description
Initialize kernel object
Usage
k_White(
s2 = 1,
D,
s2_lower = 1e-08,
s2_upper = 1e+08,
s2_est = TRUE,
useC = TRUE
)
Arguments
s2 |
Initial variance |
D |
Number of input dimensions of data |
s2_lower |
Lower bound for s2 |
s2_upper |
Upper bound for s2 |
s2_est |
Should s2 be estimated? |
useC |
Should C code used? Not implemented for White. |
Format
R6Class object.
Value
Object of R6Class with methods for fitting GP model.
Super class
GauPro::GauPro_kernel -> GauPro_kernel_White
Public fields
s2variance
logs2Log of s2
logs2_lowerLower bound of logs2
logs2_upperUpper bound of logs2
s2_estShould s2 be estimated?
Methods
Public methods
Inherited methods
Method new()
Initialize kernel object
Usage
White$new( s2 = 1, D, s2_lower = 1e-08, s2_upper = 1e+08, s2_est = TRUE, useC = TRUE )
Arguments
s2Initial variance
DNumber of input dimensions of data
s2_lowerLower bound for s2
s2_upperUpper bound for s2
s2_estShould s2 be estimated?
useCShould C code used? Not implemented for White.
Method k()
Calculate covariance between two points
Usage
White$k(x, y = NULL, s2 = self$s2, params = NULL)
Arguments
xvector.
yvector, optional. If excluded, find correlation of x with itself.
s2Variance parameter.
paramsparameters to use instead of beta and s2.
Method kone()
Find covariance of two points
Usage
White$kone(x, y, s2)
Arguments
xvector
yvector
s2Variance parameter
Method dC_dparams()
Derivative of covariance with respect to parameters
Usage
White$dC_dparams(params = NULL, X, C_nonug, C, nug)
Arguments
paramsKernel parameters
Xmatrix of points in rows
C_nonugCovariance without nugget added to diagonal
CCovariance with nugget
nugValue of nugget
Method C_dC_dparams()
Calculate covariance matrix and its derivative with respect to parameters
Usage
White$C_dC_dparams(params = NULL, X, nug)
Arguments
paramsKernel parameters
Xmatrix of points in rows
nugValue of nugget
Method dC_dx()
Derivative of covariance with respect to X
Usage
White$dC_dx(XX, X, s2 = self$s2)
Arguments
XXmatrix of points
Xmatrix of points to take derivative with respect to
s2Variance parameter
thetaCorrelation parameters
betalog of theta
Method param_optim_start()
Starting point for parameters for optimization
Usage
White$param_optim_start(jitter = F, y, s2_est = self$s2_est)
Arguments
jitterShould there be a jitter?
yOutput
s2_estIs s2 being estimated?
Method param_optim_start0()
Starting point for parameters for optimization
Usage
White$param_optim_start0(jitter = F, y, s2_est = self$s2_est)
Arguments
jitterShould there be a jitter?
yOutput
s2_estIs s2 being estimated?
Method param_optim_lower()
Lower bounds of parameters for optimization
Usage
White$param_optim_lower(s2_est = self$s2_est)
Arguments
s2_estIs s2 being estimated?
Method param_optim_upper()
Upper bounds of parameters for optimization
Usage
White$param_optim_upper(s2_est = self$s2_est)
Arguments
s2_estIs s2 being estimated?
Method set_params_from_optim()
Set parameters from optimization output
Usage
White$set_params_from_optim(optim_out, s2_est = self$s2_est)
Arguments
optim_outOutput from optimization
s2_ests2 estimate
Method s2_from_params()
Get s2 from params vector
Usage
White$s2_from_params(params, s2_est = self$s2_est)
Arguments
paramsparameter vector
s2_estIs s2 being estimated?
Method print()
Print this object
Usage
White$print()
Method clone()
The objects of this class are cloneable with this method.
Usage
White$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
Examples
k1 <- White$new(s2=1e-8)