49#ifndef DOXYGEN_SHOULD_SKIP_THIS
55 const Bijection< NodeId, std::size_t >& nodeId2columns) :
56 database_(&database), nodeId2columns_(nodeId2columns) {
57 GUM_CONSTRUCTOR(Prior);
61 INLINE Prior::Prior(
const Prior& from) :
62 weight_(from.weight_), database_(from.database_), nodeId2columns_(from.nodeId2columns_) {
67 INLINE Prior::Prior(Prior&& from) :
68 weight_(from.weight_), database_(from.database_),
69 nodeId2columns_(
std::move(from.nodeId2columns_)) {
74 INLINE Prior::~Prior() { GUM_DESTRUCTOR(Prior); }
77 INLINE
void Prior::setWeight(
const double weight) {
85 INLINE
double Prior::weight()
const {
return weight_; }
Exception : out of bound.
The class representing a tabular database as used by learning tasks.
Prior(const DatabaseTable &database, const Bijection< NodeId, std::size_t > &nodeId2columns=Bijection< NodeId, std::size_t >())
default constructor
#define GUM_ERROR(type, msg)
include the inlined functions if necessary