libgsjj  1
Deterministic finite automata learning library
Namespaces | Classes | Functions
gsjj Namespace Reference

The namespace of the library. More...

Namespaces

 passive
 Defines the passive methods for automatically learning deterministic finite automata.
 

Classes

class  DFA
 A Deterministic Finite Automaton. More...
 

Functions

std::vector< bool > decimal_to_binary (unsigned int dec_number, unsigned int size)
 Converts a number in decimal form to binary form. More...
 
unsigned int binary_to_decimal (const std::vector< bool > &binary_number)
 Converts a number in binary form to decimal form. More...
 

Detailed Description

The namespace of the library.

Function Documentation

◆ binary_to_decimal()

unsigned int gsjj::binary_to_decimal ( const std::vector< bool > &  binary_number)

Converts a number in binary form to decimal form.

Parameters
binary_numberThe number in its binary form
Returns
The number in its decimal form

Definition at line 37 of file binary.cpp.

◆ decimal_to_binary()

std::vector< bool > gsjj::decimal_to_binary ( unsigned int  dec_number,
unsigned int  size 
)

Converts a number in decimal form to binary form.

The binary form is stored in a vector of boolean values (just like a number written in binary).

Parameters
dec_numberThe number in its decimal form
sizeThe size of the binary form ( $m$)
Returns
The number in its binary form

Definition at line 12 of file binary.cpp.