getX
is used to get the matrix of covariates for the regression based on a specified polynomial order.The function getX
is used to get the matrix of covariates for the regression based on a specified polynomial order.
getX(samples, derivatives, polyorder)
An \(N\) by \(d\) matrix of samples from the target
An \(N\) by \(d\) matrix of derivatives of the log target with respect to the parameters
The order of the polynomial.
The design matrix for the regression.