From 36b439b6ff6d73bd9e99dce005442ad8dd9442b8 Mon Sep 17 00:00:00 2001 From: duynd Date: Wed, 19 Jun 2019 09:52:02 +0700 Subject: [PATCH] Change little in algorithm --- p2.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2.cc b/p2.cc index a0577c6..3d62f31 100644 --- a/p2.cc +++ b/p2.cc @@ -84,8 +84,8 @@ void p2_t::add_quantile( double quant ) double *markers = allocate_markers( 3 ); /* Add in appropriate dn markers */ - markers[0] = quant; - markers[1] = quant/2.0; + markers[0] = quant/2.0; + markers[1] = quant; markers[2] = (1.0+quant)/2.0; update_markers( );