jdtuck / fdasrvf_R

Functional Data Analysis using Square-Root Slope Framework
11 stars 15 forks source link

Correct some numerical precision in gamma_mat #6

Closed ahfoss closed 6 years ago

ahfoss commented 6 years ago

The function f.phiinv() appears to introduce numerical imprecision on the scale of +/- 1e-15. This can introduce values for gamma slightly beyond the interval [0,1], which can be problematic for subsequent analysis. Rounding to the nearest 13th decimal place solves the issue.