/// \file
-/// \brief Defines TProb<> and Prob classes which represent (probability) vectors
+/// \brief Defines TProb<> and Prob classes which represent (probability) vectors (e.g., probability distributions of discrete random variables)
#ifndef __defined_libdai_prob_h
}
/// Returns normalized copy of \c *this, using the specified norm
+ /** \throw NOT_NORMALIZABLE if the norm is zero
+ */
TProb<T> normalized( NormType norm = NORMPROB ) const {
T Z = 0;
if( norm == NORMPROB )
}
/// Normalizes vector using the specified norm
+ /** \throw NOT_NORMALIZABLE if the norm is zero
+ */
T normalize( NormType norm=NORMPROB ) {
T Z = 0;
if( norm == NORMPROB )