]> git.donarmstrong.com Git - rsem.git/blobdiff - PairedEndQModel.h
Updated WHAT_IS_NEW
[rsem.git] / PairedEndQModel.h
index a2f798120cc2524cae41b7f156aaa4bad524cced..7aebb494d1dc9c45785185e5ade49d7c2e8b2d1d 100644 (file)
@@ -9,6 +9,7 @@
 #include<algorithm>
 #include<sstream>
 #include<iostream>
+#include<vector>
 
 #include "utils.h"
 #include "my_assert.h"
@@ -197,12 +198,12 @@ public:
 
        const LenDist& getGLD() { return *gld; }
 
-       void startSimulation(simul*, double*);
+       void startSimulation(simul*, const std::vector<double>&);
        bool simulate(READ_INT_TYPE, PairedEndReadQ&, int&);
        void finishSimulation();
 
        //Use it after function 'read' or 'estimateFromReads'
-       double* getMW() { 
+       const double* getMW() { 
          assert(mw != NULL);
          return mw;
        }
@@ -361,7 +362,7 @@ void PairedEndQModel::write(const char* outF) {
        fclose(fo);
 }
 
-void PairedEndQModel::startSimulation(simul* sampler, double* theta) {
+void PairedEndQModel::startSimulation(simul* sampler, const std::vector<double>& theta) {
        this->sampler = sampler;
 
        theta_cdf = new double[M + 1];