Learn R Programming

GauPro (version 0.2.4)

gradfuncarray: Calculate gradfunc in optimization to speed up. NEEDS TO APERM dC_dparams Doesn't need to be exported, should only be useful in functions.

Description

Calculate gradfunc in optimization to speed up. NEEDS TO APERM dC_dparams Doesn't need to be exported, should only be useful in functions.

Usage

gradfuncarray(dC_dparams, Cinv, Cinv_yminusmu)

Arguments

dC_dparams

Derivative matrix for covariance function wrt kernel parameters

Cinv

Inverse of covariance matrix

Cinv_yminusmu

Vector that is the inverse of C times y minus the mean.

Value

Vector, one value for each parameter

Examples

Run this code
# NOT RUN {
# corr_gauss_dCdX(matrix(c(1,0,0,1),2,2),c(1,1))
# }

Run the code above in your browser using DataLab