Computation of median for discrete data: non-standard computation
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- data
Hướng nghiên cứu
Start by reading the math library's median implementation and its documentation, then run the reported example with (list 1 2 3 4). Check how quantile handles even-length discrete data as well. Done means the documented median behavior is consistent with the intended convention, with coverage for the even-length case.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Using (require math), we can compute (median < data), where data is a list of numbers.
When data length is even, then normally the median is computed by averaging the two central elements, after ordering.
The problem is that running the following code we obtain 2, but considering tipical references (e.g. wikipedia median) the value should be 2.5:
#lang racket
(require math)
(define data (list 1 2 3 4))
(median < data)
Could we maybe add some parameterization to the function median (and may be also to quantile) in order to compute the average of the central two elements, when the number of elements is even?
Thank you and congratulations for all your great work.
- Ngôn ngữ chính
- Racket
- Star
- 40
- Fork
- 32
- Merge trung bình
- 1 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của racket/math
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 38/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
Wishlist: flzero?Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
-
Shallow / Optional typesĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
neurostuff/NiMARE#1181 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] build_catalog_relation raises 'Macro' object has no attribute 'config' in run-operation (breaks Elementary edr report on dbt-athena 1.11.x)Có thể đã có người làm @Minhhnh đã nhận hôm nay. Đang mởtriage:product
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
dbt-labs/dbt-adapters#2222 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
weecology/DeepForest#1439 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
mozilla/experimenter#17757 ·
Maintainer thường phản hồi trong vòng 1 ngày