X-Git-Url: https://git.donarmstrong.com/?p=rsem.git;a=blobdiff_plain;f=SingleModel.h;h=b822f7dc6773c3b5d48e5a3898737bc5f59126fe;hp=7ad3464180def871d224023326c2a6992bbbaa74;hb=refs%2Fheads%2Fmaster;hpb=9eef8b58056b7cdaad1b4bdb2b2904d9fc0ff430 diff --git a/SingleModel.h b/SingleModel.h index 7ad3464..b822f7d 100644 --- a/SingleModel.h +++ b/SingleModel.h @@ -9,6 +9,7 @@ #include #include #include +#include #include "utils.h" #include "my_assert.h" @@ -230,11 +231,11 @@ public: const LenDist& getGLD() { return *gld; } - void startSimulation(simul*, double*); + void startSimulation(simul*, const std::vector&); bool simulate(READ_INT_TYPE, SingleRead&, int&); void finishSimulation(); - double* getMW() { + const double* getMW() { assert(mw != NULL); return mw; } @@ -390,7 +391,7 @@ void SingleModel::write(const char* outF) { fclose(fo); } -void SingleModel::startSimulation(simul* sampler, double* theta) { +void SingleModel::startSimulation(simul* sampler, const std::vector& theta) { this->sampler = sampler; theta_cdf = new double[M + 1];