File: CollapsedGibbsSampler.hpp

package info (click to toggle)
salmon 1.10.3%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 35,148 kB
  • sloc: cpp: 200,707; ansic: 171,082; sh: 859; python: 792; makefile: 238
file content (32 lines) | stat: -rw-r--r-- 811 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef COLLAPSED_GIBBS_SAMPLER_HPP
#define COLLAPSED_GIBBS_SAMPLER_HPP

#include <functional>
#include <unordered_map>
#include "SalmonOpts.hpp"

#include "Eigen/Dense"
#include "cuckoohash_map.hh"

class BootstrapWriter;

class CollapsedGibbsSampler {
public:
  using VecType = std::vector<double>;
  CollapsedGibbsSampler();

  template <typename ExpT>
  bool sample(ExpT& readExp, SalmonOpts& sopt,
              std::function<bool(const std::vector<double>&)>& writeBootstrap,
              uint32_t numSamples = 500);

  /*
        template <typename ExpT>
        bool sampleMultipleChains(ExpT& readExp,
              SalmonOpts& sopt,
              std::function<bool(const std::vector<double>&)>& writeBootstrap,
              uint32_t numSamples = 500);
  */
};

#endif // COLLAPSED_EM_OPTIMIZER_HPP