]> git.donarmstrong.com Git - rsem.git/blobdiff - SingleModel.h
Added error detection for cases such as a read's two mates having different names...
[rsem.git] / SingleModel.h
index 7ad3464180def871d224023326c2a6992bbbaa74..b822f7dc6773c3b5d48e5a3898737bc5f59126fe 100644 (file)
@@ -9,6 +9,7 @@
 #include<algorithm>
 #include<sstream>
 #include<iostream>
+#include<vector>
 
 #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<double>&);
        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<double>& theta) {
        this->sampler = sampler;
 
        theta_cdf = new double[M + 1];