Template Struct product_distribution_ret_t

Struct Documentation

template<typename Dist>
struct product_distribution_ret_t

Public Types

using dist_type = Dist

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:

  1. wt::discrete_distribution_t<wt::vec2_t>

  2. wt::piecewise_linear_distribution_t

  3. wt::uniform_distribution_t

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).