[7feccc]: src / lib / distribution / Distribution.cc  Maximize  Restore  History

Download this file

66 lines (51 with data), 1.0 kB

 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#include <config.h>
#include <distribution/Distribution.h>
#include <util/dim.h>
using std::vector;
using std::string;
namespace jags {
Distribution::Distribution(string const &name, unsigned int npar)
: _name(name), _npar(npar)
{
}
Distribution::~Distribution()
{
}
string const &Distribution::name() const
{
return _name;
}
string Distribution::alias() const
{
return "";
}
//FIXE: Make this an external function
bool Distribution::checkNPar (unsigned int npar) const
{
return _npar == 0 || npar == _npar;
}
unsigned int Distribution::npar () const
{
return _npar;
}
bool Distribution::isLocationParameter(unsigned int i) const
{
return false;
}
bool Distribution::isScaleParameter(unsigned int i) const
{
return false;
}
bool Distribution::isDiscreteValued(vector<bool> const &mask) const
{
return false;
}
bool Distribution::canBound() const
{
return false;
}
bool Distribution::checkParameterDiscrete(vector<bool> const &mask) const
{
return true;
}
} //namespace jags

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks