ParityGenerator class
#include <ParityGenerator.hpp>
Contents
Base classes
- class SimpleGenerator
Constructors, destructors, conversion operators
- ParityGenerator()
- ParityGenerator(uint_fast32_t i_seed)
- ParityGenerator(const GenerationParameters& i_param)
Public functions
- auto generatorParity(uint32_t i_bits) -> GraphPtr
- generatorParity represents the generation of a combinational parity check scheme.
- auto generatorParity(const GenerationParameters& i_param) -> GraphPtr
- auto generatorParity() -> GraphPtr
Function documentation
GraphPtr CG_Gen:: ParityGenerator:: generatorParity(uint32_t i_bits)
generatorParity represents the generation of a combinational parity check scheme.
| Parameters | |
|---|---|
| i_bits | The number of bits, or in other words, input vertices (variables) in the graph. |
| Returns | the created OrientedGraph |
The graph is based on the logical XOR operation, which is used to check the parity of the resulting number in binary form. The graph can be generated from any number of supplied bits, if their number is at least two. Otherwise, the generation will be canceled.