dens.hermite_estimator_bivar: Estimates the probability densities for a matrix of 2-d x...

Description Usage Arguments Details Value Examples

View source: R/hermite_estimator_bivar.R

Description

This method calculates the probability density values for a matrix of 2-d x vector values using the hermite_estimator_bivar object (this).

Usage

1
2
## S3 method for class 'hermite_estimator_bivar'
dens(this, x, clipped = FALSE, accelerate_series = FALSE)

Arguments

this

A hermite_estimator_bivar object.

x

A numeric matrix. Each row corresponds to a 2-d coordinate.

clipped

A boolean value. This value determines whether probability densities are clipped to be bigger than zero.

accelerate_series

A boolean value. Series acceleration has not yet been implemented for bivariate estimators.

Details

The object must be updated with observations prior to the use of the method.

Value

A numeric vector of probability density values.

Examples

1
2
3
4
5
hermite_est <- hermite_estimator_bivar(N = 10, standardize = TRUE)
hermite_est <- update_batch(hermite_est, matrix(rnorm(30*2), nrow=30, 
ncol=2, byrow = TRUE))
cdf_est <- dens(hermite_est, matrix(c(0, 0, 1, 1, 2, 2), nrow=3, ncol=2, 
byrow = TRUE))

hermiter documentation built on Nov. 17, 2021, 1:07 a.m.