search for: pcutildedatou

Displaying 1 result from an estimated 1 matches for "pcutildedatou".

2015 Nov 03
1
Fwd: Rcpp sugar dpois
...the function dpois since in the examples I have always found directly "dpois" or "Rcpp::dpois" that both do not work in my code. Could anyone be so patient to explain me why should it be like that? Thaks a lot, Enrico #include <Rcpp.h> using namespace Rcpp; NumericVector pcUtildedatoU(NumericVector z, double j, double par) { int l_z=z.size(); NumericVector out(l_z); for (int w=0; w<= (l_z-1); w++) { double outcand=0; double d=z[w]; if (d >= j) outcand=1; else if (d>= -j) { for(int i=-j; i&l...