Skip to content

Commit 4a951ab

Browse files
authored
fix: allow r = 0 as input
Signed-off-by: Philipp Burckhardt <[email protected]>
1 parent b4f5b06 commit 4a951ab

File tree

1 file changed

+1
-1
lines changed
  • lib/node_modules/@stdlib/stats/base/dists/geometric/quantile/src

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/stats/base/dists/geometric/quantile/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ double stdlib_base_dists_geometric_quantile( const double r, const double p ) {
4040
stdlib_base_is_nan( p ) ||
4141
p < 0.0 ||
4242
p > 1.0 ||
43-
r <= 0.0 ||
43+
r < 0.0 ||
4444
r > 1.0
4545
) {
4646
return 0.0 / 0.0; // NaN

0 commit comments

Comments
 (0)