X-Git-Url: https://git.donarmstrong.com/?p=rsem.git;a=blobdiff_plain;f=PairedEndModel.h;h=0d2c9b3f216db8df91fa47a85c57065123fe2331;hp=f3f95fe29874881b73f3a76633d83efa1e8059e8;hb=83ce658a4b9c5f04c081316314b66b94ad5ffbde;hpb=9eef8b58056b7cdaad1b4bdb2b2904d9fc0ff430 diff --git a/PairedEndModel.h b/PairedEndModel.h index f3f95fe..0d2c9b3 100644 --- a/PairedEndModel.h +++ b/PairedEndModel.h @@ -9,6 +9,7 @@ #include #include #include +#include #include "utils.h" #include "my_assert.h" @@ -193,12 +194,12 @@ public: const LenDist& getGLD() { return *gld; } - void startSimulation(simul*, double*); + void startSimulation(simul*, const std::vector&); bool simulate(READ_INT_TYPE, PairedEndRead&, int&); void finishSimulation(); //Use it after function 'read' or 'estimateFromReads' - double* getMW() { + const double* getMW() { assert(mw != NULL); return mw; } @@ -349,7 +350,7 @@ void PairedEndModel::write(const char* outF) { fclose(fo); } -void PairedEndModel::startSimulation(simul* sampler, double* theta) { +void PairedEndModel::startSimulation(simul* sampler, const std::vector& theta) { this->sampler = sampler; theta_cdf = new double[M + 1];