powered by
Validates the approximation quality by comparing moments of the approximated distribution with the theoretical moments.
validate_approximation(ws_result, n_sim = 10000, seed = NULL)
A list containing validation metrics
Result from any ws_tdiff function
Number of simulations for validation (default: 10000)
Random seed for reproducibility
result <- ws_tdiff_univariate(0, 1, 10, 0, 1.5, 15) validation <- validate_approximation(result) print(validation)
Run the code above in your browser using DataLab