dens.hermite_estimator_univar: Estimates the probability density for a vector of x values

Description Usage Arguments Details Value Examples

View source: R/hermite_estimator_univar.R

Description

This method calculates the probability density values at a vector of x values using the hermite_estimator_univar object (this).

Usage

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

Arguments

this

A hermite_estimator_univar object.

x

A numeric vector. Values at which to estimate the probability density.

clipped

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

accelerate_series

A boolean value. This value determines whether Hermite series acceleration is applied.

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
hermite_est <- hermite_estimator_univar(N = 10, standardize = TRUE)
hermite_est <- update_batch(hermite_est, rnorm(30))
pdf_est <- dens(hermite_est, c(0, 0.5, 1))

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