gpr.R : simple R implementation of the algorithm 2.1 from the book "Gaussian Processes for Machine Learning" by Carl Edward Rasmussen and Chris Williams. You can compare the produced figure with what is produced by the standard implementation of gpml package in Matlab -- gprdata.csv is the attached dataset