Version: 1.0
Functions
hypercube.cpp File Reference
#include "hypercube.h"
#include "utilities.h"

Go to the source code of this file.

Functions

void CreateTree_rec (BinaryDrag< conact > &t, BinaryDrag< conact >::node *n, const rule_set &rs, const VHyperCube &hcube, const VIndex &idx)
 
BinaryDrag< conactGenerateOdt (const rule_set &rs)
 
BinaryDrag< conactGenerateOdt (const rule_set &rs, const string &filename)
 
BinaryDrag< conactGetOdt (const rule_set &rs, bool force_generation)
 Returns the optimal (or pseudo optimal) decision tree generated from the given rule set. More...
 
BinaryDrag< conactGetOdtWithFileSuffix (const rule_set &rs, const string &file_suffix, bool force_generation)
 

Function Documentation

◆ CreateTree_rec()

void CreateTree_rec ( BinaryDrag< conact > &  t,
BinaryDrag< conact >::node *  n,
const rule_set rs,
const VHyperCube hcube,
const VIndex idx 
)

Definition at line 13 of file hypercube.cpp.

◆ GenerateOdt() [1/2]

BinaryDrag<conact> GenerateOdt ( const rule_set rs)

Definition at line 179 of file hypercube.cpp.

◆ GenerateOdt() [2/2]

BinaryDrag<conact> GenerateOdt ( const rule_set rs,
const string &  filename 
)

Definition at line 191 of file hypercube.cpp.

◆ GetOdt()

BinaryDrag<conact> GetOdt ( const rule_set rs,
bool  force_generation = false 
)

Returns the optimal (or pseudo optimal) decision tree generated from the given rule set.

This function generates the optimal decision tree from the given rule set. When the number of rules is too high, a pseudo optimal tree is generated. If the tree has already been generated, it is loaded from file, unless the "force_generation" parameter is set to true. In this case the tree is always regenerated. The loaded/generated tree is then returned from the function.

Parameters
[in]rsRule set from which generate the decision tree.
[in]force_generationWhether the tree must be generated or can be loaded from file.
Returns
The optimal decision tree associated to the specified rule set.

Definition at line 198 of file hypercube.cpp.

◆ GetOdtWithFileSuffix()

BinaryDrag<conact> GetOdtWithFileSuffix ( const rule_set rs,
const string &  file_suffix,
bool  force_generation 
)

Definition at line 207 of file hypercube.cpp.