Calculates a function that maps inputs to outputs based on provided truth tables.
Array of input rows, each row containing values for all inputs
Array of output rows corresponding to each input row
// f(0, 0, 0) returns [0, 0]// f(1, 0, 0) returns [0, 1]const f = Chalkboard.bool.mapping([ [0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]], [ [0, 0], [0, 1], [1, 0], [1, 1]]); Copy
// f(0, 0, 0) returns [0, 0]// f(1, 0, 0) returns [0, 1]const f = Chalkboard.bool.mapping([ [0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]], [ [0, 0], [0, 1], [1, 0], [1, 1]]);
Calculates a function that maps inputs to outputs based on provided truth tables.