Learn R Programming

densityratio (version 0.2.1)

predict.spectral: Obtain predicted density ratio values from a spectral object

Description

Obtain predicted density ratio values from a spectral object

Usage

# S3 method for spectral
predict(
  object,
  newdata = NULL,
  sigma = c("sigmaopt", "all"),
  m = c("opt", "all"),
  ...
)

Value

An array with predicted density ratio values from possibly new data, but otherwise the numerator samples.

Arguments

object

A spectral object

newdata

Optional matrix new data set to compute the density

sigma

A scalar with the Gaussian kernel width

m

integer indicating the dimension of the eigenvector expansion

...

Additional arguments to be passed to the function

See Also

predict, spectral