cheminfo / jsDOE

Design of experiments for JavaScript
MIT License
1 stars 1 forks source link

Helper functions #7

Open lpatiny opened 2 years ago

lpatiny commented 2 years ago

We have an array of objects as input

We need to create a matrix similar to:

[ [0, 25, 50, 75, 100], [0.1, 0.3, 1], [0, 1, 2, 3], [0, 1, 2], ]

And receive as well a mapping that allows to revert this operation

We send the matrix to a procedure that will select the parameters to test:

I want 2 experiments [ [0,2,1,2], [1,2,2,2], ]

For my 2 experiments recreate the array of object: [ { temperature: 50, 'product 1': A, ...} ]