MCPcopy Create free account
hub / github.com/alandefreitas/matplotplusplus / randp

Function randp

source/matplot/util/common.cpp:285–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283 }
284
285 double randp(double scale, double shape) {
286 std::exponential_distribution<double> d(shape);
287 return scale * exp(d(detail::default_generator()));
288 }
289
290 std::vector<double> randp(size_t n, double scale, double shape) {
291 std::vector<double> x(n);

Callers 1

mainFunction · 0.85

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected