lotze / COMPoissonReg

COMPoissonReg R package
GNU General Public License v2.0
8 stars 4 forks source link

Check nu > 0 #4

Closed Derek-Jones closed 3 years ago

Derek-Jones commented 5 years ago

The C++ function cmp_allprobs needs to check that nu > 0

Calling dcmp with nu < 0 (a silly mistake I made) soaked up all the cpu time on my machine, swapped for a long time and eventually killed the process.

I need to be protected from myself.

andrewraim commented 3 years ago

Added checks for nu along with lambda >= 0 and 0 <= p <= 1. They will be in the next release