gSulpizio / isotherm-fitting

MIT License
1 stars 1 forks source link

test for isosteric heat of adsorption #37

Closed kjappelbaum closed 3 years ago

kjappelbaum commented 3 years ago

can you add a test for

    for (let j = 0; j < data.length; j++) {
      lnP.push(data[j].lnP[i] + Math.log(saturationPressure[j]));
    }
    regression = new SimpleLinearRegression(inverseTemperatures, lnP);

using the data from the Excel sheet?

gSulpizio commented 3 years ago

destructured, made a test for it: test, function Note that it's a simple test but that's what it does over and over again