You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the .mean() and .moment(1) methods produce faulty answers when there is a sudden rise to a non-zero value at either extrema of a qp.interp grid (may happen in others, but I found for sure in qp.interp). For example, if you try:
The first value, with the very small half-Gaussian centered right on the end point of 3.0, is incorrectly overshot, while the broader half-Gaussian with scale=0.25 produces the correct answer for 2.8484. So, this problem seems to only occur for a rapid rise in the PDF. I noticed this while computing means for some FZBoost PDFs where the mean was being reported as high as z=3.5 when the grid stopped at z=3.0, which is obviously a problem.
The text was updated successfully, but these errors were encountered:
It looks like the .mean() and .moment(1) methods produce faulty answers when there is a sudden rise to a non-zero value at either extrema of a qp.interp grid (may happen in others, but I found for sure in qp.interp). For example, if you try:
you get:
The first value, with the very small half-Gaussian centered right on the end point of 3.0, is incorrectly overshot, while the broader half-Gaussian with scale=0.25 produces the correct answer for 2.8484. So, this problem seems to only occur for a rapid rise in the PDF. I noticed this while computing means for some FZBoost PDFs where the mean was being reported as high as z=3.5 when the grid stopped at z=3.0, which is obviously a problem.
The text was updated successfully, but these errors were encountered: