sutoiku/formula.js

Formula.js does not work with jstat 1.0.0

Closed this issue · 3 comments

I just found formula.js last week and I am very appreciative of the work that you guys have done to make working with formula easier for the rest of the JS world. I do want to bring to your attention some trouble with getting the library to work.

I followed the instructions and included the latest version of every dependency. When I tried to load the page, the code is throwing an exception on line 3303:

CORREL = jStat.corrcoeff;

The problem is that jStat is undefined. It seems that the namespace for jstat has changed from jStat to jstat in version 1.0.0. Also, a bunch of functions seem to have been moved. I am able to get the code to work if I include the jstat.js file from stoic.com. I am hoping that one of you might have a quick solution for this problem. If not, it might be helpful to update the dependency section to direct people to download the old version of jstat. Let me know if I can assist in fixing this problem.

Thanks for the heads up. I'll have a look at the issue in the next few days

We will do this once they roll it into https://github.com/jstat/jstat

Closing this. The latest released version of jstat is 0.0.2

jStat Statistical Library for JavaScript =trev.norris 2012-06-24 0.0.2