File: GibbsParameters.h

package info (click to toggle)
bitseq 0.7.5+dfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 676 kB
  • sloc: cpp: 7,043; python: 562; makefile: 150; sh: 52
file content (45 lines) | stat: -rw-r--r-- 1,574 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
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef GIBBSPARAMETERS_H
#define GIBBSPARAMETERS_H

#include<string>

using namespace std;

#include "ArgumentParser.h"

struct distributionParameters{//{{{
   double alpha,beta;
};//}}}

class gibbsParameters{
   private:
      long gs_burnIn, gs_samplesN, gs_chainsN, gs_samplesNmax, gs_samplesSave;
      double gs_targetScaleReduction;
      bool verbose;
      distributionParameters dirP, betaP;
      string gs_samplesFile,gs_meansFile,paramFileName;
      void parameter(string name, bool &variable, double value);
      void parameter(string name, long &variable, double value);
      void parameter(string name, double &variable, double value);
   public:
      gibbsParameters(bool verbose = true);
      bool setParameters(string paramFileName);
      bool setParameters(ArgumentParser &args);
      bool readParameters();
      void getAllParameters();
      long burnIn() const {return gs_burnIn;}
      long samplesN() const {return gs_samplesN;}
      long samplesSave() const {return gs_samplesSave;}
      long samplesNmax() const {return gs_samplesNmax;}
      long chainsN() const {return gs_chainsN;}
      const distributionParameters& dir() const {return dirP;}
      const distributionParameters& beta()const {return betaP;}
      double targetScaleReduction() const {return gs_targetScaleReduction;}
//      string samplesFile() const {return gs_samplesFile;}
//      string meansFile() const {return gs_meansFile;}
//      void setLogFiles(string tau,string tauMeans);
//      outputType output() const {return (outputType)gs_output;}
};


#endif