bug-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #59494] Bug in gsl_rstat


From: Patrick Alken
Subject: [bug #59494] Bug in gsl_rstat
Date: Wed, 20 Jan 2021 22:13:50 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0

Update of bug #59494 (project gsl):

                  Status:                    None => Fixed                  
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #1:

The issue with n=5 has been corrected in commit
        42933198abec39071c1ae1bdf2d7e3adeed233a2

For n > 5, the median calculation only produces an estimate of the true
median, not the exact median, using the algorithm of Jain and Chlamtec 1985.
The only way to compute the exact median is to store all values in an array
and use gsl_stats_median. So this is not in fact a bug in the code.

I also uploaded bug_corrected.c, which fixes some syntax errors in the
original example program.

(file #50758)
    _______________________________________________________

Additional Item Attachment:

File name: bug_corrected.c                Size:1 KB
    <https://file.savannah.gnu.org/file/bug_corrected.c?file_id=50758>



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59494>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]