51#ifndef DOXYGEN_SHOULD_SKIP_THIS
57 const Bijection< NodeId, std::size_t >& nodeId2columns) :
58 database_(&database), nodeId2columns_(nodeId2columns) {
59 GUM_CONSTRUCTOR(Prior);
63 INLINE Prior::Prior(
const Prior& from) :
64 weight_(from.weight_), database_(from.database_), nodeId2columns_(from.nodeId2columns_) {
69 INLINE Prior::Prior(Prior&& from) noexcept :
70 weight_(from.weight_), database_(from.database_),
71 nodeId2columns_(std::move(from.nodeId2columns_)) {
76 INLINE Prior::~Prior() { GUM_DESTRUCTOR(Prior); }
79 INLINE
void Prior::setWeight(
const double weight) {
87 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
the base class for all a priori