get_x_from_u returns incorrect or NaN values for (beta-)distributions

Aperta
#396 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
50/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp, python
Ambito
data

Direzione di ricerca

Start by running the attached issue_beta_distribution.py reproducer and inspect the implementation of .get_x_from_u() for beta distributions. Compare its results for the narrow distribution described in the issue with scipy. Done means the reproducer produces no NaN or incorrect values.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
Probabilistic library version checks
  • I have checked that this issue has not already been reported.
  • I have checked that this bug exists on the latest version of Probabilistic library here.
Current behaviour

narrow beta-distributions return incorrect or NaN values:

reproduce issue as follows:
issue_beta_distribution.py

Desired behaviour

no NaN values and no incorrect output for .get_x_from_u(), i.e. level of robustness as scipy.

Additional context

run into this problem in a brute force Monte Carlo analysis with one of the variables defined as

x_i.distribution = DistributionType.beta
x_i.mean = 0.7
x_i.deviation = 0.05

Lingua principale
C++
Stelle
9
Fork
1
Merge medio
2g 19h
PR unite (30g)
11

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Deltares/ProbabilisticLibrary

Tutte le issue di Deltares/ProbabilisticLibrary

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.