spectral
objectObtain predicted density ratio values from a spectral
object
# S3 method for spectral
predict(
object,
newdata = NULL,
sigma = c("sigmaopt", "all"),
m = c("opt", "all"),
...
)
An array with predicted density ratio values from possibly new data, but otherwise the numerator samples.
A spectral
object
Optional matrix
new data set to compute the density
A scalar with the Gaussian kernel width
integer indicating the dimension of the eigenvector expansion
Additional arguments to be passed to the function
predict
, spectral