est_dens2: Two dimensional projection estimator

Description Usage Arguments Value Examples

View source: R/est_dens2.R

Description

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.

Usage

1
est_dens2(basis, data, dim)

Arguments

basis

an object of class Basis

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

Value

The two dimensional projection estimator of the common density of the data stored in data, given basis

Examples

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))

nschaefer1211/OSE documentation built on Dec. 31, 2020, 12:59 a.m.