X-Git-Url: https://git.donarmstrong.com/?p=rsem.git;a=blobdiff_plain;f=PairedEndQModel.h;h=7aebb494d1dc9c45785185e5ade49d7c2e8b2d1d;hp=a2f798120cc2524cae41b7f156aaa4bad524cced;hb=b64d62d49f9b0446f10f87a2aadcde2f36854ab6;hpb=9eef8b58056b7cdaad1b4bdb2b2904d9fc0ff430 diff --git a/PairedEndQModel.h b/PairedEndQModel.h index a2f7981..7aebb49 100644 --- a/PairedEndQModel.h +++ b/PairedEndQModel.h @@ -9,6 +9,7 @@ #include #include #include +#include #include "utils.h" #include "my_assert.h" @@ -197,12 +198,12 @@ public: const LenDist& getGLD() { return *gld; } - void startSimulation(simul*, double*); + void startSimulation(simul*, const std::vector&); bool simulate(READ_INT_TYPE, PairedEndReadQ&, int&); void finishSimulation(); //Use it after function 'read' or 'estimateFromReads' - double* getMW() { + const double* getMW() { assert(mw != NULL); return mw; } @@ -361,7 +362,7 @@ void PairedEndQModel::write(const char* outF) { fclose(fo); } -void PairedEndQModel::startSimulation(simul* sampler, double* theta) { +void PairedEndQModel::startSimulation(simul* sampler, const std::vector& theta) { this->sampler = sampler; theta_cdf = new double[M + 1];