MipBaselib::ProbabilityMass Class Reference
[Probability Density Functions (PDF) and Hypotesis Densities (PHD)]

Represents an integer value associated with its probability. More...

#include <Discrete.h>

List of all members.

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.


Detailed Description

Represents an integer value associated with its probability.

Author:
Paolo Stegagno

Constructor & Destructor Documentation

MipBaselib::ProbabilityMass::ProbabilityMass (  ) 

Default constructor.

MipBaselib::ProbabilityMass::ProbabilityMass ( int  y,
Decimal  q 
)

Complete constructor.

Parameters:
[in] y Value of the Random Variable.
[in] q Probability of the value.

MipBaselib::ProbabilityMass::ProbabilityMass ( const ProbabilityMass pm  ) 

Copy constructor.

Parameters:
[in] pm Probability mass to be copied.


Member Function Documentation

void MipBaselib::ProbabilityMass::operator= ( const ProbabilityMass pm  ) 

Copies a ProbabilityMass.

Parameters:
[in] pm Probability mass to be copied.

string MipBaselib::ProbabilityMass::print (  ) 

Complete constructor.

Returns:
A printable string.


Member Data Documentation

Value that can be assumed by the Random Variable.

Probability of the value x.


The documentation for this class was generated from the following files:

Generated on Mon Feb 20 07:01:11 2017 for MIP by  doxygen 1.5.6