Version: 1.0
Classes | Functions
hyper Namespace Reference

Classes

class  HyperCube
 

Functions

std::string BinaryWithIndifference (size_t value, size_t indif, size_t nbits)
 
BinaryDrag< conactGenerateOdt (const rule_set &rs)
 
BinaryDrag< conactGenerateOdt (const rule_set &rs, const string &filename)
 
BinaryDrag< conactGetOdt (const rule_set &rs, bool force_generation=false)
 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)
 
template<typename T >
std::istream & rawread (std::istream &is, T &val, size_t n)
 
template<typename T >
std::ostream & rawwrite (std::ostream &os, const T &val, size_t n)
 
BinaryDrag< conactGenerateOdt (const rule_set &rs, const std::string &filename)
 
BinaryDrag< conactGetOdtWithFileSuffix (const rule_set &rs, const std::string &file_suffix, bool force_generation=false)
 Returns the optimal (or pseudo optimal) decision tree generated from the given rule set. More...
 

Function Documentation

◆ BinaryWithIndifference()

std::string hyper::BinaryWithIndifference ( size_t  value,
size_t  indif,
size_t  nbits 
)

Definition at line 34 of file hypercube++.cpp.

◆ GenerateOdt() [1/3]

BinaryDrag< conact > hyper::GenerateOdt ( const rule_set rs)

Definition at line 186 of file hypercube++.cpp.

◆ GenerateOdt() [2/3]

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

◆ GenerateOdt() [3/3]

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

Definition at line 198 of file hypercube++.cpp.

◆ GetOdt()

BinaryDrag< conact > hyper::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 205 of file hypercube++.cpp.

◆ GetOdtWithFileSuffix() [1/2]

BinaryDrag<conact> hyper::GetOdtWithFileSuffix ( const rule_set rs,
const std::string &  file_suffix,
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]file_suffixSuffix that is appended to the file name of the decision tree file.
[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.

◆ GetOdtWithFileSuffix() [2/2]

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

Definition at line 214 of file hypercube++.cpp.

◆ rawread()

template<typename T >
std::istream& hyper::rawread ( std::istream &  is,
T &  val,
size_t  n 
)

Definition at line 20 of file hypercube++.h.

◆ rawwrite()

template<typename T >
std::ostream& hyper::rawwrite ( std::ostream &  os,
const T &  val,
size_t  n 
)

Definition at line 24 of file hypercube++.h.