[Boost-bugs] [Boost C++ Libraries] #6992: accumulator's median feature skips 1st two data points.

Subject: [Boost-bugs] [Boost C++ Libraries] #6992: accumulator's median feature skips 1st two data points.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-06-16 01:10:16


#6992: accumulator's median feature skips 1st two data points.
---------------------------------+------------------------------------------
 Reporter: polyactis@… | Owner: eric_niebler
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: accumulator
  Version: Boost 1.41.0 | Severity: Problem
 Keywords: |
---------------------------------+------------------------------------------
 Hi,

 I used accumulator's median feature to calculate mean/median of input
 data. I also used armadillo library's mean/median. The mean from two
 libraries always agree. However the medians don't. I tried to give
 1,2,3,4,5 input data to the program. and found accumulator's median
 outputs 0 if the number of input data is 1 or 2. It starts to output non-
 zero median if given more than 2 data points however, first two data
 points are not used.

 Please check what is going on.

 Thanks,
 yu

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6992>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC