MultiAgentDecisionProcess
CPDKroneckerDelta Class Reference

CPDKroneckerDelta implements a Kronecker delta-style CPD. More...

#include <CPDKroneckerDelta.h>

Inheritance diagram for CPDKroneckerDelta:
[legend]

Public Member Functions

CPDKroneckerDeltaClone () const
 Returns a pointer to a copy of this class. More...
 
 CPDKroneckerDelta ()
 Constructor. More...
 
double Get (Index x, Index y) const
 Returns $ P(x|y) $. More...
 
Index Sample (Index y) const
 Returns an (index of a) x drawn according to $ P(x|y) $. More...
 
void SanityCheck () const
 
void Set (Index x, Index y, double prob)
 Sets P(x|y) More...
 
std::string SoftPrint () const
 
- Public Member Functions inherited from CPDDiscreteInterface
virtual ~CPDDiscreteInterface ()
 Destructor. More...
 

Detailed Description

CPDKroneckerDelta implements a Kronecker delta-style CPD.

Centers probability mass of 1 on x == y.

Constructor & Destructor Documentation

CPDKroneckerDelta::CPDKroneckerDelta ( )
inline

Constructor.

Referenced by Clone().

Member Function Documentation

CPDKroneckerDelta* CPDKroneckerDelta::Clone ( ) const
inlinevirtual

Returns a pointer to a copy of this class.

Implements CPDDiscreteInterface.

References CPDKroneckerDelta().

double CPDKroneckerDelta::Get ( Index  x,
Index  y 
) const
inlinevirtual

Returns $ P(x|y) $.

Implements CPDDiscreteInterface.

Index CPDKroneckerDelta::Sample ( Index  y) const
inlinevirtual

Returns an (index of a) x drawn according to $ P(x|y) $.

Implements CPDDiscreteInterface.

void CPDKroneckerDelta::SanityCheck ( ) const
inlinevirtual

Implements CPDDiscreteInterface.

void CPDKroneckerDelta::Set ( Index  x,
Index  y,
double  prob 
)
inlinevirtual

Sets P(x|y)

Doesn't apply to Kronecker delta function.

Implements CPDDiscreteInterface.

std::string CPDKroneckerDelta::SoftPrint ( ) const
inlinevirtual

Implements CPDDiscreteInterface.