Template Struct product_distribution_ret_t¶
Defined in File product_distribution.hpp
Struct Documentation¶
-
template<typename Dist>
struct product_distribution_ret_t¶ -
Public Members
-
Dist dist¶
The computed product distribution \( h(x) = \frac{ f(x)g(x) }{ R_0 } \), where \( R_0 \) is the normalization factor.
dist
will always be one of the following:
-
f_t R0¶
The normalization factor, i.e. the functional norm of the product of the densities: \( R_0 = \int \mathrm dx f(x)g(x) \). The factor \( 0 \leq R_0 \leq 1 \) can be understood as the correlation coefficient (cross-correlation, at zero lag, between the distributions), quantifying similarity between the distributions.
-
bool approximate¶
Flag that indicates that the computed product distribution is approximative.
-
bool discrete = false¶
Flag that indicates that the product distribution
dist
and \( R_0 \) are discrete (iff both input distributions are discrete).
-
Dist dist¶