density.hermite_estimator_bivar: Creates an object summarizing the bivariate PDF with...

View source: R/hermite_estimator_bivar.R

density.hermite_estimator_bivarR Documentation

Creates an object summarizing the bivariate PDF with associated generic methods print and plot.

Description

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

Usage

## S3 method for class 'hermite_estimator_bivar'
density(x, x_lower = NA, x_upper = NA, ...)

Arguments

x

A hermite_estimator_bivar object.

x_lower

A numeric vector. This vector determines the lower limit of x values at which to evaluate the density.

x_upper

A numeric vector. This vector determines the upper limit of x values at which to evaluate the density.

...

Additional arguments for the dens function.

Value

A hdensity_bivar object whose underlying structure is a list containing the following components.

x: The points at which the density is calculated. x_vals_1: Marginal quantiles of first random variable, used for plotting. x_vals_2: Marginal quantiles of second random variable, used for plotting. density_vals: The density values at the points x. num_obs: The number of observations used to form the Hermite density estimates. N: The number of terms N in the Hermite series estimator.


hermiter documentation built on May 31, 2023, 6:30 p.m.