merge_pair.hermite_estimator_univar: Merges two Hermite estimators

Description Usage Arguments Details Value Examples

View source: R/hermite_estimator_univar.R

Description

This method allows a pair of Hermite based estimators of class hermite_estimator_univar to be consistently merged.

Usage

1
2
## S3 method for class 'hermite_estimator_univar'
merge_pair(this, hermite_estimator_other)

Arguments

this

A hermite_estimator_univar object. The first Hermite series based estimator.

hermite_estimator_other

A hermite_estimator_univar object. The second Hermite series based estimator.

Details

Note that the N and standardize arguments must be the same for the two estimators in order to merge them. In addition, note that exponentially weighted estimators cannot be merged. If the Hermite estimators are not standardized, the merged estimator will be exactly equivalent to constructing a single estimator on the data set formed by combining the data sets used to update the respective hermite_estimator_univar inputs. If the input Hermite estimators are standardized however, then the equivalence will be approximate but still accurate in most cases.

Value

An object of class hermite_estimator_univar.

Examples

1
2
3
4
5
hermite_est_1 <- hermite_estimator_univar(N = 10, standardize = FALSE)
hermite_est_1 <- update_batch(hermite_est_1, rnorm(30))
hermite_est_2 <- hermite_estimator_univar(N = 10, standardize = FALSE)
hermite_est_2 <- update_batch(hermite_est_2, rnorm(30))
hermite_merged <- merge_pair(hermite_est_1, hermite_est_2)

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