src/regression.js
function regress(jMatX,jMatY){
    //print("regressin!");
    //print(jMatX.toArray());
    var innerinv = jStat.xtranspxinv(jMatX);
    //print(innerinv);
    var xtransp = jMatX.transpose();
    var next = jStat.matrixmult(jStat(innerinv),xtransp);
    return jStat.matrixmult(next,jMatY);

  }
function regress(jMatX,jMatY){
    //print("regressin!");
    //print(jMatX.toArray());
    var innerinv = jStat.xtranspxinv(jMatX);
    //print(innerinv);
    var xtransp = jMatX.transpose();
    var next = jStat.matrixmult(jStat(innerinv),xtransp);
    return jStat.matrixmult(next,jMatY);

  }
function regress ( jMatX , jMatY ) { //print("regressin!"); //print(jMatX.toArray()); var innerinv = jStat . xtranspxinv ( jMatX ) ; //print(innerinv); var xtransp = jMatX . transpose ( ) ; var next = jStat . matrixmult ( jStat ( innerinv ) , xtransp ) ; return jStat . matrixmult ( next , jMatY ) ; }
regress and regresst to be fixed
regress and regresst to be fixed