Closed dslramsey closed 1 year ago
Thanks Dave.
On Wed, Mar 22, 2023 at 2:07 PM Dave Ramsey @.***> wrote:
I think there is a bug in the dHN.r code where you calculate the analytical integral for line transects. Currently it is
integral=pnorm(Xmax, 0, sigma)-0.5
However, I think the analytical integral should be
integral = 2(pnorm(Xmax, 0, sigma)-0.5) sqrt(pi/2) * sigma
I think the point transect one is OK
— Reply to this email directly, view it on GitHub https://github.com/scrogster/nimbleDistance/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJTVM2HD7VZHGLF6NCBG43W5JUGVANCNFSM6AAAAAAWDIHQSI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Bug is now corrected in dHN.R
closing bug.
I think there is a bug in the dHN.r code where you calculate the analytical integral for line transects. Currently it is
integral=pnorm(Xmax, 0, sigma)-0.5
However, I think the analytical integral should be
integral = 2*(pnorm(Xmax, 0, sigma)-0.5) * sqrt(pi/2) * sigma
I think the point transect one is OK