andbeck / Parrots_2021

Parrot Demographic Modelling
1 stars 0 forks source link

Fix multiple uses for `tol` parameter in makeProjectionMatrix() #3

Open tdjames1 opened 3 years ago

tdjames1 commented 3 years ago

The tol parameter, which is intended to control the convergence when the projection matrix is calculated iteratively, is also used as a fudge factor in a check on the value of survival/lambda: https://github.com/andbeck/Parrots_2021/blob/b81fe1773175e743c05379ecd3a2a0a4d6b9571a/R/make_projection_matrix.R#L45

Replace this use with an alternative construction e.g. test for "almost equal".