Covariance method only for Alea instances

Issue #57 resolved
Pierre Denis repo owner created an issue

The cov method is only available on Alea instances, i.e. independent random variables. This makes its usage quite limited:

a.cov(b)

  • raises exception if a is not an Alea instance,
  • = a.var if a is b,
  • = 0 if a is not b and b does not refer to a,
  • = a non-trivial covariance in other cases.

a.cov(b) should work on any Lea instances.

Comments (4)

  1. Log in to comment