Description Usage Arguments Value Examples
Given a sample of i.i.d real random bivariate vectors with a common density f and a basis of
class Basis
. This function calculates the two dimensional projection estimator of the destiny f.
1 |
basis |
an object of class |
data |
a data frame with two columns of samples of i.i.d. real random variables |
dim |
a vector of length two. If only one value is passed, this value is reproduced to attain a vector of length two |
The two dimensional projection estimator of the common density of the data stored in data
, given basis
1 2 3 4 5 6 7 8 | # example with the trigonometric basis
d <- 10
d1 <- 8
d2 <- 5
trig_bas <- Trig_Basis$new(d)
x <- runif(100)
y <- runif(100)
estimated_density <- est_dens2(trig_bas, data = data.frame(x, y), dim = c(d1, d2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.