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

Đang mở
#396 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
50/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp, python
Lĩnh vực
data

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
C++
Star
9
Fork
1
Merge trung bình
2 ngày 19 giờ
Pull request đã merge (30 ngày)
11

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Deltares/ProbabilisticLibrary

Tất cả issue của Deltares/ProbabilisticLibrary

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.