draw = (getState = x => x, options = {}) => {
console.log('alpha='+alpha);
console.log('beta='+beta);
const [x0, y0] = init;
const data = simulate(0, 100, [x0, y0], goodwin({ alpha, beta, gamma, delta, sigma, rho, s}));
const lines = getState(data)
return getMultiLineGraph(lines, {
width: width,
height: 420,
margin: {top: 20, right: 30, bottom: 30, left: 40},
xRange: [0, 100],
yRange: [0, 30],
xLabel: 'time',
...options
});
}