KJB
|
Represents the dependence between X and Y in p(x | y), where (x,y) is a bivariate normal. More...
#include <prob_conditional_distribution.h>
Public Member Functions | |
Normal_on_normal_dependence (const Normal_distribution &PX, const Normal_distribution &PY, double covariance_XY) | |
Specify this conditional distributon by specifying the marginals and the covariance. More... | |
Normal_on_normal_dependence (double conditional_std_dev) | |
Specify this conditional distributon by specifying the conditional variance, meaning the mean will simply the given value y. This a common thing to do in our lab. More... | |
Normal_on_normal_dependence (const Normal_on_normal_dependence &nond) | |
Normal_on_normal_dependence & | operator= (const Normal_on_normal_dependence &nond) |
Normal_distribution | operator() (double y) const |
Represents the dependence between X and Y in p(x | y), where (x,y) is a bivariate normal.
We need five parameters to determine a bivariate normal: three elements of the covariance matrix of the joint (var_X, var_Y, * and cov_XY) and the two means (mean_X, mean_Y). From these parameters, we can determine p(x | y) for any value of y.
Additionally, one can provide the conditional variance directly, which means one wants the mean to be simply y.
|
inline |
Specify this conditional distributon by specifying the marginals and the covariance.
|
inline |
Specify this conditional distributon by specifying the conditional variance, meaning the mean will simply the given value y. This a common thing to do in our lab.
|
inline |
|
inline |
|
inline |