Integrate function

See the example in the thread Testing user defined probability function implementations in Stan generated quantities

3 Likes