MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / qweibull_1

Function qweibull_1

inst/include/Rcpp/stats/weibull.h:67–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 return R_D_exp(x);
66}
67inline double qweibull_1(double p, double shape /*, double scale [=1.0] */, int lower_tail, int log_p){
68#ifdef IEEE_754
69 if (ISNAN(p) || ISNAN(shape))
70 return p + shape + 1.0;
71#endif
72 if (shape <= 0) return R_NaN;
73
74 R_Q_P01_boundaries(p, 0, ML_POSINF);
75
76 return ::pow(- R_DT_Clog(p), 1./shape);
77}
78
79} // stats
80} // Rcpp

Callers

nothing calls this directly

Calls 1

powFunction · 0.85

Tested by

no test coverage detected