Closed mpadge closed 6 years ago
I think the PR looks OK. But I'm having an odd issue with travis and tests. Once I figure out, I'll merge.
yeah i saw the travis output, but it was clearly not related to my PR so i ignored it. Hope you can figure it out
Thanks for the bug fix (it was a bug).
Also fixed travis. It seems that testthat and set.seed have suddenly stopped playing together. Odd.
Heya Colin, i'm finally getting back around to my convolution ms. This PR solves the problem that the following lines work:
while the following fail:
The reason is simply because the offending line changes the length of the output of
dpldis
. The PR ensures that both cases work, and so allowsdpldis
to be passed to any other integration or convolution functions. This passes all tests, and I think hasonly one consequence that it no longer ensures that the- that's now taken care of as well.log(x)
call does not receive any negative numbers - i'll leave that to you if that's okay.Note another way to look at the problem:
xmin
may often be derived from some other routine, and not necessarily be explicitly known. The following will not work, and it will be difficult to reconcile the knownx
with the shorter result ofdpldis
. The commit also avoids that problem.