exec_algo_composite: Execute the algorithm of a algo_composite on a given input.

Description Usage Arguments Value Examples

Description

A algo_composite, by definition in this context, is an algorithm that takes x bits as input, applies to them a directed graph set of abstract node functions, and returns y bits as output. This function applies / executes / runs that algorithm on a given input and returns the corresponding output.

Usage

1
exec_algo_composite(algo, input = NULL, ...)

Arguments

algo

A composite algorithm (R6 Class algo_composite)

input

The input bits (logical vector | character vector of "0"s and "1"s | R6 Class BinaryNumber)

Value

The corresponding output (same type than input)

Examples

1
2
3
4
5
# R function style:
exec_algo_composite(algo, input);

# R6 method style:
algo$exec_algo_composite(input);

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