Skip to content

Really slow beta distribution #459

@marcospassos

Description

@marcospassos

Description

Computing the beta distribution is really slow when alpha >= 1.5 and beta <= 1. For example, computing the beta distribution for alpha = 1001, and beta = 1, takes up to 8 seconds.

Any suggestion on how to make it faster?

Reproduction

import iterator from '@stdlib/random-iter-beta';

iterator(1001, 1, {iter: 10000, seed: 1234});

Version

0.0.5

Environments

Node.js

Node.js / npm Version

v14.17.1

Platform

OSX

Checklist

  • Read and understood the Code of Conduct.
  • Searched for existing issues and pull requests.

Metadata

Metadata

Assignees

Labels

BugSomething isn't working.PerformanceIssue or pull request addressing performance concerns and/or optimizations.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions