Class for representing joint distributions.