Learn R Programming

mmtdiff (version 1.0.0)

validate_approximation: Validate Moment-Matching Approximation

Description

Validates the approximation quality by comparing moments of the approximated distribution with the theoretical moments.

Usage

validate_approximation(mm_result, n_sim = 10000, seed = NULL)

Value

A list containing validation metrics

Arguments

mm_result

Result from any mm_tdiff function

n_sim

Number of simulations for validation (default: 10000)

seed

Random seed for reproducibility

Examples

Run this code
result <- mm_tdiff_univariate(0, 1, 10, 0, 1.5, 15)
validation <- validate_approximation(result)
print(validation)

Run the code above in your browser using DataLab