4
  /   ˆ{‹„„-i[D<†ªoZƒ›Ù«Â571_‘I|¥‰ÓMdœv ©ƒ†ü+=ÂÁ ;    ‹      Õ–ßoÓ0Çß÷W?ðÖ^bK‚F3‰Š®­º"„ªÜØm¬&vd_Ú•¿§	j7Z1 òä»Ë×¾ûœ�ÄÞ³pÜŸ}šÜ�w³Û!™|x;ô	m |ìöÂYX>è5[m€›%4FÌ.¶ÛmsÛmj³‚ÙbL“X42Â&GNƒ¯ˆÄ‹ãn$JLD0P\Ü½$ s´’7og�‹�Œ„-l)¤"ÕfW-Pš‹Vå½‚Lo…ñ \Ïe€*…·Ð|WdnÿÁ,n±}ñl±OV˜&ð0&–È•ò)êŒžLWÄšÈ§ #­,,¦ÖÍ•\RÂôéçAüÅé ãbvà1±ôé›¾?ºû!F,°Óš[§¹¦Á�Y$©ær)?+¾+ÅwòëùÃR
™¡Ôê ‡xŒéÄfÌ±¾p±9V•þ³n°èA3&×Ó›Ñ,LË–ðb‰Cu¿¿g4˜0#’P¡‹UPe†çja³«ï.©J6r#i�“Ê_àÌÕZé­:Fum<	ÉìNE4ØÇE>ªªÓê¼l´Û�N—´Ú—½!g„î}ÿ/ËÏQÛÜfBñ9	ÛÍSëhNDkçôhtBƒÊ¨!‚ÉÊTÌY„r#ækÉÝöœ>­óú?E+ìÐ
»Æ»&Tñ»á¬*Pc$‹ó£3Xúu*¿s‚?:�ã5Ì-[qíÝ¿�óÄkT2ö—>Êëæ7Ë[@ïÑ
       ˆÀ¿Ã639¾ÂÁ     ‹      Õ—QoÚ0Çßû)<?ì.ºª4dêH¥¡µµLÓ4M•‰Mb5±#Û�±O?§…NeKµV£Owûîgß%&x]§_'gèãôâM>8n|é¢iä~èµ=àlŒN�)ú eY¶Ën[ª¦W�š<ë�6ŠÇ¦MÅáAP=P�2B­E�á&cáHPöÉ9¹0šSfç­4P¶ä1Ó•oX9Ë¥ZÕæ¸BRæA\,:@_2UùÝ Üš6
Ôa‚™¤«*ºÿÌ‘ì‚k2[¬\&EK’ñD°‘ž'H«x€�ÇRh˜eDÜ¶>Çˆdf€¿�†—ß­LZÍ‚RÅæü~8Ÿ\"ŽIÎ �k.¬æ‡çD”KÊçœÑ�âk'¾æ?w/9MÄt¬xa¸)XÄmÔXfº –õÐ¤j[å$ôo»Aâ›19½:O£Ñ•ÛZ-±ÉîÏ‡¢˜0(âŠÅÆÊj2æ­˜éâänˆê¼ORƒC„ZèQå`ç2£Lmãî�Iœ2›¯³ÛYþ–VÇë¼kù~Ë?FþQß;Bèó_ˆ[!K±`káq Etz#¤aÚRlP:>ò¼~ÇÛ‰bß=ŸþÊ�¶�ó€gýd_ š××}CÔNó
{÷¢Öœ`ÎU^Ún¾©ÚÜ‚<¿>žTš"[$–äÎkÆÐéö;½=apo\:»/gð„V—"ãÂ6¸³¯¯­Y®»ÚÙÆt¸/M ³úcŽÃ�¿/…ÔœÃÎ—™LVãÞ}…ñ[ÚÛ�}Žcøs;4¼XB}å`}µÀý±ø Êu»       ˆÀ¿Ã551¾ÂÁ '    ‹      Õ–QoÚ0Çßû)<?ìŽ@×ªÔÉÔ¤!µ€(Ó4Mrb‡XKâÈ>`ìÓÏ!Aeh�´Må%¾\þçûÿK6{NóOÓ!y?¸'ÓïîGB[ {€pÖ.Û`8¦„¦ˆe`³Ù´7½¶6K˜Ï Å<»‹FÅØ(hpÁª\pAX*¹p#a¨0“Á¨òÑ	½B«„tu[B®U,m£Ì!—¹6Ûf¸¹‚BÙ�¸\õ Q&ßp#Uì*jJ„Qki,ƒº�ëMki±­yÿ¡»k²ƒåÑÎDš€aJÖ<SËÂ§¨K0•/‰5±OAÅº°e¼øÚ^ª„ž¡O?�“/N˜VÕã$52ñéÛ�?¾�ø!Æ<—øqÍƒÓÜÑàž[$¹*QRœ?ÖâGõýô„a­	¥��*QéâI
ñ5Ö™-¹c}ãRs¨ª%âw«ÁãŸcz7ŽçáhV/‰¨¦xr÷·ÿ%¦.[ 	•‘1ººµîûºˆly»%ˆQËi@H‹Uþ}¢3!Í!ÿ)òh…¨g¸	}þb¬Ûé^µ<¯åÝïºß¹&äEÈØ¹w�g8ïöHÇë÷º/ÄyÊ�ØíiŒ6‹zÛ9˜ãù3ä+%V8Õp~î1•&ç™ØGgÈPæ‹ØDC�Ã:_ÊB	Ç°�þ=Ã3O"hÎh»ûƒúÆòÚÓÏþ	    C   	ˆl–Ãa¾”êh¥2 ¸&®6â˜´o�þ_­,Ü¤’¸Æ ùÅ„eÇÞÄ_‹I|¥�+ýÿ¹ä³ÄÃ ?÷     	/* boost random/hyperexponential_distribution.hpp header file
 *
 * Copyright Marco Guazzone 2014
 * Distributed under the Boost Software License, Version 1.0. (See
 * accompanying file LICENSE_1_0.txt or copy at
 * http://www.boost.org/LICENSE_1_0.txt)
 *
 * See http://www.boost.org for most recent version including documentation.
 *
 * Much of the code here taken by boost::math::hyperexponential_distribution.
 * To this end, we would like to thank Paul Bristow and John Maddock for their
 * valuable feedback.
 *
 * \author Marco Guazzone (marco.guazzone@gmail.com)
 */

#ifndef BOOST_RANDOM_HYPEREXPONENTIAL_DISTRIBUTION_HPP
#define BOOST_RANDOM_HYPEREXPONENTIAL_DISTRIBUTION_HPP


#include <boost/config.hpp>
#include <boost/math/special_functions/fpclassify.hpp>
#include <boost/random/detail/operators.hpp>
#include <boost/random/detail/vector_io.hpp>
#include <boost/random/discrete_distribution.hpp>
#include <boost/random/exponential_distribution.hpp>
#include <boost/range/begin.hpp>
#include <boost/range/end.hpp>
#include <boost/range/size.hpp>
#include <boost/type_traits/has_pre_increment.hpp>
#include <cassert>
#include <cmath>
#include <cstddef>
#include <iterator>
#ifndef BOOST_NO_CXX11_HDR_INITIALIZER_LIST
# include <initializer_list>
#endif // BOOST_NO_CXX11_HDR_INITIALIZER_LIST
#include <iostream>
#include <limits>
#include <numeric>
#include <vector>


namespace boost { namespace random {

namespace hyperexp_detail {

template <typename T>
std::vector<T>& normalize(std::vector<T>& v)
{
    if (v.size() == 0)
    {
        return v;
    }

    const T sum = std::accumulate(v.begin(), v.end(), static_cast<T>(0));
    T final_sum = 0;

    const typename std::vector<T>::iterator end = --v.end();
    for (typename std::vector<T>::iterator it = v.begin();
         it != end;
         ++it)
    {
        *it /= sum;
        final_sum += *it;
    }
    *end = 1-final_sum; // avoids round off errors thus ensuring the probabilities really sum to 1

    return v;
}

template <typename RealT>
bool check_probabilities(std::vector<RealT> const& probabilities)
{
    const std::size_t n = pr