Open tbenthompson opened 2 years ago
for simpson/trapezoid, the procedure would look something like:
for gaussian quadrature, the procedure would look like:
I also would like to investigate what the "normal" way of doing this is because this CDF computation from numerical integration on a pre-computed grid of points is surely a 100% solved problem. i wouldn’t be surprised if the simpson rule version is the standard approach.
a third approach would be:
this would involve more runtime computation because the interpolation would require a matrix vector product.
Currently, we use Simpson's rule in some places and Gauss-hermite quadrature in others. We haven't considered the CDF step very much. I am not sure how much error is introduced by this step. Before exploring implementation options, we should simply do a convergence test with current quadrature rules to determine how much error is being introduced at this step.