Computer the second derivative of the likelihood function with respect to one of the hyper-parameters, with first and second derivative of the kernel function given.
D2(d1, d2, inv.Q, Alpha.Q)
First derivative of the kernel function with respect to the required hyper-parameter.
Second derivative of the kernel function with respect to the required hyper-parameter.
Inverse matrix of the covariance matrix
This is iQY(iQY)'-iQ. where iQ is the inverse of the covariance matrix, Y is the response.
A number
The function is to calculate the second derivative of the normal likelihood, using the first and second derivative of the kernel functions. The first and second derivative need to be pre-defined, for example of customized covariance function, see "demo('co2')".
Shi, J Q., and Choi, T. (2011), Gaussian Process Regression Analysis for Functional Data, Springer, New York.