-
-
Notifications
You must be signed in to change notification settings - Fork 810
docs: replace manual for
loop in examples
#6849
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
Coverage Report
The above coverage report was generated for the changes in this PR. |
Signed-off-by: Harsh <149176984+hrshya@users.noreply.github.com>
}; | ||
var t = discreteUniform( 10, 0, 5, opts ); | ||
var n = discreteUniform( 10, 0, 10, opts ); | ||
var p = discreteUniform( 10, 0, 1, opts ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't correct. p
should be a probability and not discrete.
}; | ||
var t = discreteUniform( 10, 0, 5, opts ); | ||
var n = discreteUniform( 10, 0, 10, opts ); | ||
var p = discreteUniform( 10, 0, 1, opts ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment.
'dtype': 'float64' | ||
}; | ||
var n = discreteUniform( 10, 0, 100, opts ); | ||
var p = discreteUniform( 10, 0, 1, opts ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment.
'dtype': 'float64' | ||
}; | ||
var n = discreteUniform( 10, 0, 100, opts ); | ||
var p = discreteUniform( 10, 0, 1, opts ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment.
}; | ||
var x = discreteUniform( 10, 0, 20, opts ); | ||
var n = discreteUniform( 10, 0, 100, opts ); | ||
var p = discreteUniform( 10, 0, 1, opts ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment.
}; | ||
var x = discreteUniform( 10, 0, 20, opts ); | ||
var n = discreteUniform( 10, 0, 100, opts ); | ||
var p = discreteUniform( 10, 0, 1, opts ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment.
}; | ||
var r = discreteUniform( 10, 0, 1, opts ); | ||
var n = discreteUniform( 10, 0, 100, opts ); | ||
var p = discreteUniform( 10, 0, 1, opts ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment.
}; | ||
var r = discreteUniform( 10, 0, 1, opts ); | ||
var n = discreteUniform( 10, 0, 100, opts ); | ||
var p = discreteUniform( 10, 0, 1, opts ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment.
'dtype': 'float64' | ||
}; | ||
var n = discreteUniform( 10, 0, 100, opts ); | ||
var p = discreteUniform( 10, 0, 1, opts ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment.
'dtype': 'float64' | ||
}; | ||
var n = discreteUniform( 10, 0, 100, opts ); | ||
var p = discreteUniform( 10, 0, 1, opts ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment.
'dtype': 'float64' | ||
}; | ||
var n = discreteUniform( 10, 0, 100, opts ); | ||
var p = discreteUniform( 10, 0, 1, opts ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment.
'dtype': 'float64' | ||
}; | ||
var n = discreteUniform( 10, 0, 100, opts ); | ||
var p = discreteUniform( 10, 0, 1, opts ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment.
'dtype': 'float64' | ||
}; | ||
var n = discreteUniform( 10, 0, 100, opts ); | ||
var p = discreteUniform( 10, 0, 1, opts ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment.
'dtype': 'float64' | ||
}; | ||
var n = discreteUniform( 10, 0, 100, opts ); | ||
var p = discreteUniform( 10, 0, 1, opts ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment.
Resolves none .
Description
This pull request:
stats/base/dists/binomial/mgf
,stats/base/dists/binomial/mode
,stats/base/dists/binomial/pmf
,stats/base/dists/binomial/quantile
,stats/base/dists/binomial/skewness
,stats/base/dists/binomial/stdev
andstats/base/dists/binomial/variance
packages.Related Issues
This pull request:
Questions
No.
Other
No.
Checklist
@stdlib-js/reviewers