This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/CLPBN/clpbn/bp/Distribution.h

41 lines
673 B
C
Raw Normal View History

2011-12-12 15:29:51 +00:00
#ifndef HORUS_DISTRIBUTION_H
#define HORUS_DISTRIBUTION_H
#include <vector>
#include "CptEntry.h"
#include "Shared.h"
using namespace std;
struct Distribution
{
public:
2011-12-12 15:29:51 +00:00
Distribution (unsigned id)
{
this->id = id;
this->params = params;
}
2011-12-12 15:29:51 +00:00
Distribution (const ParamSet& params, unsigned id = -1)
{
2011-12-12 15:29:51 +00:00
this->id = id;
this->params = params;
}
void updateParameters (const ParamSet& params)
{
this->params = params;
}
unsigned id;
ParamSet params;
vector<CptEntry> entries;
private:
DISALLOW_COPY_AND_ASSIGN (Distribution);
};
2011-12-12 15:29:51 +00:00
#endif // HORUS_DISTRIBUTION_H