View source: R/newtons_method.R
A simple implementation of Newton's method to find posterior mode. For use with the Laplace approximation in exercise 2, lab1.
| 1 | newtons_method(y, k_xx, precision = 0.05)
 | 
| y | Vector of outcome variables. | 
| k_xx | Covariance matrix of the GP. | 
| precision | Measured by the squared distance between two consequtive f vectors. Defaults to 0.05. | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.