]> git.donarmstrong.com Git - rsem.git/blobdiff - SingleQModel.h
Added posterior standard deviation of counts as output if either '--calc-pme' or...
[rsem.git] / SingleQModel.h
index 5da47545370bdaf94991d36c50b474270d876bd4..ba43d9b608c934dd290ff5a9679b7f7d96e9586a 100644 (file)
@@ -9,6 +9,7 @@
 #include<algorithm>
 #include<sstream>
 #include<iostream>
+#include<vector>
 
 #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<double>&);
        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<double>& theta) {
        this->sampler = sampler;
 
        theta_cdf = new double[M + 1];