Description Usage Arguments Value Examples
This function plots the estimated bivariate density function for a given set of data using a given orthonormal basis of some dimension.
1 | plot_dens2(basis, data, dim, resol = 300)
|
basis |
an object of class |
data |
a data frame with two columns, each containing a sample of i.i.d. real random variables with common density. |
dim |
a vector of length two. If only one value is passed, this value is reproduced to attain a vector of length two. |
resol |
a numeric value, specifying the quality of the plot(length.out of processed values). The default is 300. |
no return
1 2 3 4 5 6 7 | ## Not run:
trig_bas <- Trig_Basis$new(1000)
dens <- function(x) dnorm(x, 0.5, 0.088)
data <- rdens(dens, 150)
p9 <- plot_dens2(trig_bas, data = data.frame(data, data), dim = c(8, 8))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.