rat_quad | R Documentation |
For points x
, xp
, and a pair of hyperparameters alpha
and theta
,
gives the rational quadratic correlation between the two points.
rat_quad(x, xp, hp)
x |
A data.frame of rows corresponding to position vectors |
xp |
A data.frame of rows corresponding to position vectors |
hp |
The hyperparameters alpha (exponent and scale) and theta (correlation length) |
This correlation function, for d = |x-x'|, has the form
(1+d^2/(2\alpha\theta^2))^{-\alpha}
, and can be seen as a superposition of exponential-squared
correlation functions.
The rational quadratic correlation between x and xp.
Rasmussen & Williams (2005) <ISBN: 9780262182539>
rat_quad(data.frame(a=1), data.frame(a=2), list(alpha = 1.5, theta = 0.1))
#> 0.004970797
rat_quad(data.frame(a=1,b=2,c=-1),data.frame(a=1.5,b=2.9,c=-0.7), list(alpha = 1.5, theta = 0.2))
#> 0.02904466
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.