X-Git-Url: https://git.donarmstrong.com/?p=rsem.git;a=blobdiff_plain;f=SingleQModel.h;h=ba43d9b608c934dd290ff5a9679b7f7d96e9586a;hp=5da47545370bdaf94991d36c50b474270d876bd4;hb=da57529b92adbb7ae74a89861cb39fb35ac7c62d;hpb=9eef8b58056b7cdaad1b4bdb2b2904d9fc0ff430 diff --git a/SingleQModel.h b/SingleQModel.h index 5da4754..ba43d9b 100644 --- a/SingleQModel.h +++ b/SingleQModel.h @@ -9,6 +9,7 @@ #include #include #include +#include #include "utils.h" #include "my_assert.h" @@ -238,12 +239,12 @@ public: const LenDist& getGLD() { return *gld; } - void startSimulation(simul*, double*); + void startSimulation(simul*, const std::vector&); bool simulate(READ_INT_TYPE, SingleReadQ&, int&); void finishSimulation(); //Use it after function 'read' or 'estimateFromReads' - double* getMW() { + const double* getMW() { assert(mw != NULL); return mw; } @@ -405,7 +406,7 @@ void SingleQModel::write(const char* outF) { fclose(fo); } -void SingleQModel::startSimulation(simul* sampler, double* theta) { +void SingleQModel::startSimulation(simul* sampler, const std::vector& theta) { this->sampler = sampler; theta_cdf = new double[M + 1];