49#ifndef DOXYGEN_SHOULD_SKIP_THIS
60 const std::vector< std::pair< std::size_t, std::size_t > >& ranges,
61 const Bijection< NodeId, std::size_t >& nodeId2columns) :
62 Score(parser, prior, ranges, nodeId2columns),
63 _internal_prior_(parser.database(), nodeId2columns) {
64 GUM_CONSTRUCTOR(ScorefNML);
68 INLINE ScorefNML::ScorefNML(
const DBRowGeneratorParser& parser,
70 const Bijection< NodeId, std::size_t >& nodeId2columns) :
71 Score(parser, prior, nodeId2columns), _internal_prior_(parser.database(), nodeId2columns) {
72 GUM_CONSTRUCTOR(ScorefNML);
76 INLINE ScorefNML::ScorefNML(
const ScorefNML& from) :
77 Score(from), _internal_prior_(from._internal_prior_) {
78 GUM_CONS_CPY(ScorefNML);
82 INLINE ScorefNML::ScorefNML(ScorefNML&& from) :
83 Score(
std::move(from)), _internal_prior_(
std::move(from._internal_prior_)) {
84 GUM_CONS_MOV(ScorefNML);
88 INLINE ScorefNML* ScorefNML::clone()
const {
return new ScorefNML(*
this); }
91 INLINE ScorefNML::~ScorefNML() { GUM_DESTRUCTOR(ScorefNML); }
94 INLINE std::string ScorefNML::isPriorCompatible(
const Prior& prior) {
95 return isPriorCompatible(prior.getType(), prior.weight());
99 INLINE std::string ScorefNML::isPriorCompatible()
const {
100 return isPriorCompatible(*(this->prior_));
104 INLINE
const Prior& ScorefNML::internalPrior()
const {
return _internal_prior_; }
the class used to read a row in the database and to transform it into a set of DBRow instances that c...
the base class for all a priori
The base class for all the scores used for learning (BIC, BDeu, etc).
ScorefNML(const DBRowGeneratorParser &parser, const Prior &prior, const std::vector< std::pair< std::size_t, std::size_t > > &ranges, const Bijection< NodeId, std::size_t > &nodeId2columns=Bijection< NodeId, std::size_t >())
default constructor
include the inlined functions if necessary
gum is the global namespace for all aGrUM entities
the class for computing fNML scores