#include <Discrete.h>
Public Member Functions | |
| ProbabilityMass () | |
| Default constructor. | |
| ProbabilityMass (int y, Decimal q) | |
| Complete constructor. | |
| ProbabilityMass (const ProbabilityMass &pm) | |
| Copy constructor. | |
| void | operator= (const ProbabilityMass &pm) |
| Copies a ProbabilityMass. | |
| string | print () |
| Complete constructor. | |
Public Attributes | |
| int | x |
| Value that can be assumed by the Random Variable. | |
| Decimal | p |
| Probability of the value x. | |
| MipBaselib::ProbabilityMass::ProbabilityMass | ( | ) |
Default constructor.
| MipBaselib::ProbabilityMass::ProbabilityMass | ( | int | y, | |
| Decimal | q | |||
| ) |
Complete constructor.
| [in] | y | Value of the Random Variable. |
| [in] | q | Probability of the value. |
| MipBaselib::ProbabilityMass::ProbabilityMass | ( | const ProbabilityMass & | pm | ) |
Copy constructor.
| [in] | pm | Probability mass to be copied. |
| void MipBaselib::ProbabilityMass::operator= | ( | const ProbabilityMass & | pm | ) |
| string MipBaselib::ProbabilityMass::print | ( | ) |
Complete constructor.
Value that can be assumed by the Random Variable.
Probability of the value x.
1.5.6