commutate: commutate

Description Usage Arguments Value Examples

Description

...

Usage

1

Arguments

algo_0

A component algorithm to be commutated to when e == 0 (algo_base)

algo_1

A component algorithm to be commutated to when e == 1 (algo_base)

...

For future usage

Value

A component algorithm whose inner logic commutates algo_0 and algo_1 based on e

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# Switch two simple algos:
require(haricot);
algo_0 <- algo_01$new();
algo_0$plot();
algo_1 <- algo_10$new();
algo_1$plot();
commutated <- commutate(algo_0, algo_1);
commutated$exec("00");
commutated$exec("10");
commutated$exec("01");
commutated$exec("11");
commutated$plot();

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