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

46 lines
659 B
C
Raw Normal View History

2011-12-12 15:29:51 +00:00
#ifndef HORUS_DISTRIBUTION_H
#define HORUS_DISTRIBUTION_H
#include <vector>
2012-03-22 11:33:24 +00:00
#include "Horus.h"
//TODO die die die die die
using namespace std;
2012-03-22 11:33:24 +00:00
struct Distribution
{
public:
2012-03-22 11:33:24 +00:00
Distribution (int id)
{
2012-03-22 11:33:24 +00:00
this->id = id;
}
2012-03-22 11:33:24 +00:00
Distribution (const Params& params, int id = -1)
{
2011-12-12 15:29:51 +00:00
this->id = id;
this->params = params;
}
2012-03-22 11:33:24 +00:00
void updateParameters (const Params& params)
{
this->params = params;
}
2012-03-22 11:33:24 +00:00
bool shared (void)
{
return id != -1;
}
int id;
Params params;
private:
DISALLOW_COPY_AND_ASSIGN (Distribution);
};
2011-12-12 15:29:51 +00:00
#endif // HORUS_DISTRIBUTION_H