convert_algo_base_to_algo_: convert_algo_base_to_algo_

Description Usage Arguments Value Examples

Description

This function builds a truth table from an arbitrary algorithm by executing it with all possible inputs. Of course, this function is highly inefficient and may only be applied to low input dimensional algorithms.

Usage

1

Arguments

algo

An arbitrary algorithm (R6 Class algo_base)

Value

The equivalent truth-table-based algorithm (R6 Class algo_)

Examples

1
2
3
4
5
6
7
8
# R function style:
a1 <- algo_not$new();
a2 <- convert_algo_base_to_algo_(a1);
print(a2);

# R6 method style:
a3 <- a1$convert_to_algo_();
print(a3);

daviddoret/haricot documentation built on May 21, 2019, 1:42 a.m.