| scalarProductOfLogDensities | R Documentation |
This uses the Covariance Operator capability of the ReferenceMeasure, x and y are converted to functions.
scalarProductOfLogDensities(x, y = x, space)
x |
a log density function (centering is not required) |
y |
a log density function (centering is not required) |
space |
a BayesSpace (or anything that has a ReferenceMeasure) |
the scalar product of the (centred) log-densities 'x' and 'y' with respect to the reference measure of 'space', computed via the covariance operator of that measure. A single numeric value for scalar functions, or a matrix of pairwise scalar products when 'x' and 'y' are vector-valued (e.g. basis functions).
scalarProductOfLogDensities(function(x) rep(1,length(x)),space=B2Unif01)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.