rbchan / unmarked

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

improve performance of pcountOpen #49

Closed rbchan closed 12 years ago

rbchan commented 13 years ago

tranProbs should be transformed and matrix mult should be used instead of colSums(...)

C++ code for tranProbs might be faster with += than with Rcpp::sum.

perhaps g.star should be a vector, overwritten in each loop, rather than a matrix that needs to be indexed.