3#ifndef cMHN_COMMON_CALCULATE_SCORE_H
4#define cMHN_COMMON_CALCULATE_SCORE_H
30 template<
class T, pRC::Size D,
class S>
39 for(
auto const &[k, v] : pD)
65 template<pRC::Size RP,
class T, pRC::Size D,
class S>
68 T const &toleranceSolverP = 1e-4)
74 for(
auto const &[k, v] : pD)
Class storing all relevant information for a regulator.
Definition regulator.hpp:30
auto score(pRC::Tensor< T, D, D > const &theta) const
Definition regulator.hpp:48
Class storing all relevant information for a score.
Definition score.hpp:28
auto pointwiseScore(T const &pDE, T const &pThetaE) const
Definition score.hpp:45
Class storing an MHN operator represented by a theta matrix (for TT calculations)
Definition mhn_operator.hpp:24
constexpr auto & bigTheta(pRC::Index const i, pRC::Index const j) const
Definition mhn_operator.hpp:34
Class storing an MHN operator represented by a theta matrix (for non TT calculations)
Definition mhn_operator.hpp:24
constexpr auto & bigTheta(pRC::Index const i, pRC::Index const j) const
Definition mhn_operator.hpp:34
Definition calculate_pTheta.hpp:20
T calculateScore(nonTT::MHNOperator< T, D > const &op, std::map< S, T > const &pD, cMHN::Score< T > const &Score, cMHN::Regulator< T, D > const &Regulator)
Calculate score of a theta matrix given some data distribution pD.
Definition calculate_score.hpp:31
decltype(expand(pRC::makeConstantSequence< pRC::Size, D, 2 >(), [](auto const ... Ns) { return pRC::Tensor< T, Ns... >{};})) calculatePTheta(nonTT::MHNOperator< T, D > const &op)
Calculates the vector pTheta given a nonTT MHN Operator.
Definition calculate_pTheta.hpp:39
static constexpr auto zero()
Definition zero.hpp:12