CPSetOfPSets Class

# CPSetOfPSets Class Reference

[CADIHash.h Index] [CADIHash.h Hierarchy]

@Doc In order to judge the consistency of comparisons performed by the user we have to keep for each comparison (or each group of comparisons, as remains to be tested) a set of elements with their degree of conistency with the comparison More...

`#include <../libBayesian/include/CPSetOfPSets.h>`

## Public Members

- CPSetOfPSets (int inMaximumSize=10)
- ~CPSetOfPSets ()
- CPSetOfPSets (int inMaximumSize, CSet* inSetPrototype)
- void addElement (const CContentElement& inSet)
- double evaluateAssumption (CAssumption* inAssumption)
- double updateWeights (CContent& inContent)
- double evaluateContent (const CContent& inContent, bool inWithOutput=false, string inOutputName="when_adding")
- const T* getCurrentBest () const
- int getCurrentBestSize ()
- CIDSequence* drawSequenceFromCurrentBest (long inSize)
- CSet* drawSetFromCurrentBest (long inSize)
- void setPrototype (CSet* inPrototype)
- CSet* getPrototypeClone ()
- double combine (CContentElement& inoutChanged, const CContentElement& inChanger)
- void reduceToTheMax (CContent& inContent)
- void setMaximumSize (int inMaximumSize)
- void setForgetAfterNthInconsistency (int inN)
- int size ()
- void clear ()
- void setNumberOfImages (const int& inNumberOfImages)
- int getNumberOfImages ()

## Detailed Description

@Doc In order to judge the consistency of comparisons performed by the user we have to keep for each comparison (or each group of comparisons, as remains to be tested) a set of elements with their degree of conistency with the comparison. This part (for a single set) is fulfilled by the CProbabilistic Set.

In this structure we keep now a set of such sets, along with functions which judge their consistency.

In fact this is a set of probabilistic sets together with helper functions for hunting pictures.

todo: We can add a set of PSets to the set (these are the different comparisons) out of this set is calculated a list of iterator-lists

## void reduceToTheMax(CContent& inContent)

reducing the size, if there are too many sets stored

| Kdoc