Skip to content

Conversation

@hrshya
Copy link
Contributor

@hrshya hrshya commented Jan 17, 2026

Resolves none .

Description

What is the purpose of this pull request?

This pull request:

  • Refactors random number generation in JS benchmarks for the stats/base/dists/pareto-type1/* packages.
  • Replaces uniform() from @stdlib/random/array/uniform for cleaner and more consistent code.
  • Moves the random number generation outside the benchmarking loops.
  • Updates the test messages to follow code conventions.

Related Issues

Does this pull request have any related issues?

This pull request:

  • resolves no related issues.

Questions

Any questions for reviewers of this pull request?

No.

Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

No.

Checklist

Please ensure the following tasks are completed before submitting this pull request.


@stdlib-js/reviewers

@stdlib-bot stdlib-bot added Statistics Issue or pull request related to statistical functionality. Needs Review A pull request which needs code review. labels Jan 17, 2026
Signed-off-by: Harsh <149176984+hrshya@users.noreply.github.com>
Signed-off-by: Harsh <149176984+hrshya@users.noreply.github.com>
@stdlib-bot
Copy link
Contributor

stdlib-bot commented Jan 17, 2026

Coverage Report

Package Statements Branches Functions Lines
stats/base/dists/pareto-type1/cdf $\color{green}323/323$
$\color{green}+0.00%$
$\color{green}25/25$
$\color{green}+0.00%$
$\color{green}4/4$
$\color{green}+0.00%$
$\color{green}323/323$
$\color{green}+0.00%$
stats/base/dists/pareto-type1/ctor $\color{green}438/438$
$\color{green}+0.00%$
$\color{green}32/32$
$\color{green}+0.00%$
$\color{green}17/17$
$\color{green}+0.00%$
$\color{green}438/438$
$\color{green}+0.00%$
stats/base/dists/pareto-type1/entropy $\color{green}197/197$
$\color{green}+0.00%$
$\color{green}10/10$
$\color{green}+0.00%$
$\color{green}2/2$
$\color{green}+0.00%$
$\color{green}197/197$
$\color{green}+0.00%$
stats/base/dists/pareto-type1/kurtosis $\color{green}199/199$
$\color{green}+0.00%$
$\color{green}10/10$
$\color{green}+0.00%$
$\color{green}2/2$
$\color{green}+0.00%$
$\color{green}199/199$
$\color{green}+0.00%$
stats/base/dists/pareto-type1/logcdf $\color{green}327/327$
$\color{green}+0.00%$
$\color{green}25/25$
$\color{green}+0.00%$
$\color{green}4/4$
$\color{green}+0.00%$
$\color{green}327/327$
$\color{green}+0.00%$
stats/base/dists/pareto-type1/logpdf $\color{green}339/339$
$\color{green}+0.00%$
$\color{green}25/25$
$\color{green}+0.00%$
$\color{green}4/4$
$\color{green}+0.00%$
$\color{green}339/339$
$\color{green}+0.00%$
stats/base/dists/pareto-type1/mean $\color{green}181/181$
$\color{green}+0.00%$
$\color{green}10/10$
$\color{green}+0.00%$
$\color{green}2/2$
$\color{green}+0.00%$
$\color{green}181/181$
$\color{green}+0.00%$
stats/base/dists/pareto-type1/median $\color{green}119/119$
$\color{green}+0.00%$
$\color{green}6/6$
$\color{green}+0.00%$
$\color{green}1/1$
$\color{green}+0.00%$
$\color{green}119/119$
$\color{green}+0.00%$
stats/base/dists/pareto-type1/mode $\color{green}195/195$
$\color{green}+0.00%$
$\color{green}10/10$
$\color{green}+0.00%$
$\color{green}2/2$
$\color{green}+0.00%$
$\color{green}195/195$
$\color{green}+0.00%$
stats/base/dists/pareto-type1/pdf $\color{red}336/339$
$\color{green}+0.00%$
$\color{green}24/24$
$\color{green}+0.00%$
$\color{red}3/4$
$\color{green}+0.00%$
$\color{red}336/339$
$\color{green}+0.00%$
stats/base/dists/pareto-type1/quantile $\color{green}319/319$
$\color{green}+0.00%$
$\color{green}25/25$
$\color{green}+0.00%$
$\color{green}4/4$
$\color{green}+0.00%$
$\color{green}319/319$
$\color{green}+0.00%$
stats/base/dists/pareto-type1/skewness $\color{green}196/196$
$\color{green}+0.00%$
$\color{green}10/10$
$\color{green}+0.00%$
$\color{green}2/2$
$\color{green}+0.00%$
$\color{green}196/196$
$\color{green}+0.00%$
stats/base/dists/pareto-type1/stdev $\color{green}203/203$
$\color{green}+0.00%$
$\color{green}12/12$
$\color{green}+0.00%$
$\color{green}2/2$
$\color{green}+0.00%$
$\color{green}203/203$
$\color{green}+0.00%$
stats/base/dists/pareto-type1/variance $\color{green}200/200$
$\color{green}+0.00%$
$\color{green}12/12$
$\color{green}+0.00%$
$\color{green}2/2$
$\color{green}+0.00%$
$\color{green}200/200$
$\color{green}+0.00%$

The above coverage report was generated for the changes in this PR.

Signed-off-by: Harsh <149176984+hrshya@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review A pull request which needs code review. Statistics Issue or pull request related to statistical functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants