Imported from https://github.com/STOR-i/GaussianProcesses.jl
