DSL_noisyMAX

<< Click to Display Table of Contents >>

Navigation:  Reference Manual > Node definitions >

DSL_noisyMAX

Header file: defnoisymax.h

class DSL_noisyMAX : public DSL_ciDef  

DSL_noisyMax derives from DSL_ciDef and implements a noisy-MAX parametrization. In addition to conditionally independent probabilities defined in DSL_ciDef, DSL_noisyMAX includes parent outcome strengths for each parent. The parent outcome strengths (by default set to 0, 1, 2, ...) can be used to reorder parent outcomes (as seen from the child node) without any modification in the parent node itself.


virtual int GetType() const;

Overridden method from DSL_nodeDef. Returns DSL_NOISY_MAX.


virtual const char* GetTypeName() const;

Overridden method from DSL_nodeDef. Returns "NOISY_MAX".


int CheckCiWeightsConsistency(const DSL_Dmatrix &weightsToTest, 

 std::string &errMsg, int& errRow, int& errCol) const;

Checks the consistency of a specified weightsToTest. Returns DSL_OKAY on success, or a negative error code on failure. On failure errMsg, errRow and errCol are set.


const DSL_intArray& GetParentOutcomeStrengths(int parentIndex) const;

Gets the reference to the DSL_intArray object representing the outcome strengths for the specified parent. Note that the validity of parentIndex is not checked.


int SetParentOutcomeStrengths(int parentIndex, const DSL_intArray &newStrengths);

Sets the outcome strengths for the specified parent. Returns DSL_OKAY on success, or a negative error code on failure.


int GetTemporalParentOutcomeStrengths(int order, 

 std::vector<DSL_intArray>& strengths) const;

For a plate node in a DBN, gets outcome strengths for all parents for a specified temporal order. Returns DSL_OKAY on success, or a negative error code on failure.


int SetTemporalParentOutcomeStrengths(int order, 

 const std::vector<DSL_intArray>& strengths);

For a plate node in a DBN, sets outcome strengths for all parents for a specified temporal order. Returns DSL_OKAY on success, or a negative error code on failure.