rbchan / unmarked

R package for hierarchical models in ecological research
https://rbchan.github.io/unmarked/
36 stars 25 forks source link

Add C engine for multinomPois #120

Closed kenkellner closed 5 years ago

kenkellner commented 5 years ago

Adds C++ engine for multinomPois and makes it the default. It's not a lot faster (maybe 30%), but multinomPois was already pretty fast (at least for the example datasets). As with gmultmix it only supports double/removal piFuns - if the user provides a custom piFun it gives a warning and drops back to the R engine. I added tests and also had to update the cap-recap vignette since it uses a custom piFun for multinomPois.

Here's an R script to benchmark the C engine: multinomPois_C_example.txt