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
621 B
C
Raw Normal View History

#ifndef BP_DISTRIBUTION_H
#define BP_DISTRIBUTION_H
#include <vector>
#include <string>
#include "Shared.h"
using namespace std;
struct Distribution
{
public:
Distribution (unsigned id)
{
this->id = id;
this->params = params;
}
Distribution (const ParamSet& params)
{
this->id = -1;
this->params = params;
}
void updateParameters (const ParamSet& params)
{
this->params = params;
}
unsigned id;
ParamSet params;
vector<CptEntry> entries;
private:
DISALLOW_COPY_AND_ASSIGN (Distribution);
};
#endif