Examples of fit()


Examples of ca.nengo.math.CurveFitter.fit()

    for (int i=0; i<values[0].length; i++) {
      values[0][i] = -9 + i * 2;
      values[1][i] = target.map(new float[]{values[0][i]});
    }
   
    Function fitted = lcf.fit(values[0], values[1]);
   
//    Plotter.plot(target, -10, 0.1f, 10, "target");
//    Plotter.plot(fitted, -10, 0.5f, 10, "fitted");
   
    float targetVal = 0f;
View Full Code Here

Examples of ca.nengo.math.CurveFitter.fit()

      countSpikes(myCurrents[i], dt, myTransientTime);
      rates[i] = countSpikes(myCurrents[i], dt, simTime) / simTime;
    }

    CurveFitter cf = new LinearCurveFitter();
    Function result = cf.fit(myCurrents, rates);
    myConstantRateFunction = result;
    myConstantRateFunctionOK = true;
    myMode = mode;
  }
View Full Code Here

Examples of ca.nengo.math.CurveFitter.fit()

      reset(false);
//      Plotter.plot(output, "simulation "+i);
      rt[i] = getRefreactoryTime(Vm[i]);
    }

    Function result = fitter.fit(current, Vm);
//    Plotter.plot(result, 0, .1f, 60, "current -> Vm");
//    Plotter.plot(current, rt, "current -> rt");
    return result;
  }
View Full Code Here

Examples of ca.nengo.math.impl.LinearCurveFitter.fit()

    for (int i=0; i<values[0].length; i++) {
      values[0][i] = -9 + i * 2;
      values[1][i] = target.map(new float[]{values[0][i]});
    }
   
    Function fitted = lcf.fit(values[0], values[1]);
   
//    Plotter.plot(target, -10, 0.1f, 10, "target");
//    Plotter.plot(fitted, -10, 0.5f, 10, "fitted");
   
    float targetVal = 0f;
View Full Code Here

Examples of ca.nengo.math.impl.LinearCurveFitter.fit()

      countSpikes(myCurrents[i], dt, myTransientTime);
      rates[i] = countSpikes(myCurrents[i], dt, simTime) / simTime;
    }

    CurveFitter cf = new LinearCurveFitter();
    Function result = cf.fit(myCurrents, rates);
    myConstantRateFunction = result;
    myConstantRateFunctionOK = true;
    myMode = mode;
  }
View Full Code Here

Examples of ca.nengo.math.impl.LinearCurveFitter.fit()

      reset(false);
//      Plotter.plot(output, "simulation "+i);
      rt[i] = getRefreactoryTime(Vm[i]);
    }

    Function result = fitter.fit(current, Vm);
//    Plotter.plot(result, 0, .1f, 60, "current -> Vm");
//    Plotter.plot(current, rt, "current -> rt");
    return result;
  }
View Full Code Here

Examples of ca.nengo.math.impl.LinearCurveFitter.fit()

        //make the interpolated distortion functions (note these are normalized to radius 1; we map this online in case radius changes) ...
        LinearCurveFitter cf = new LinearCurveFitter();
        myInterpFunctions = new Function[myOrigin.getDimensions()];
        for (int i = 0; i < myInterpFunctions.length; i++) {
            myInterpFunctions[i] = cf.fit(r, difference[i]);
        }
    }

    private float[][] setNoise(DecodedOrigin origin) throws SimulationException {
        int nSamples = 500;
View Full Code Here

Examples of com.nr.model.Fitlin.fit()

       
      }
    }

    Fitlin mylinfit = new Fitlin(x,y,sig,this);
    mylinfit.fit();
    sbeps=TOL;
    for (j=0;j<ma;j++) {
//      System.out.printf(mysvdfit.a[j] << " %f\n", mylinfit.a[j] << " ";
//      System.out.printf(sqrt(mysvdfit.covar[j][j]) << " %f\n", sqrt(mylinfit.covar[j][j]));
      localflag = abs(mysvdfit.a[j]-mylinfit.a[j]) > sbeps;
View Full Code Here

Examples of com.nr.model.Fitlin.fit()

      y[i] += ndev.dev();
      sig[i]=stdev;
    }

    Fitlin myfit = new Fitlin(x,y,sig,this);
    myfit.fit();

    for (j=0;j<ma;j++) {
      localflag = abs(myfit.a[j]-amp[j]) > 2.0*sqrt(myfit.covar[j][j]);
      globalflag = globalflag || localflag;
      if (localflag) {
View Full Code Here

Examples of com.nr.model.Fitlin.fit()

//    System.out.printf(endl;

    // Now check results of restricting fit parameters 1 and 3
    myfit.hold(1,amp[1]);
    myfit.hold(3,amp[3]);
    myfit.fit();

    localflag = (myfit.a[1] != amp[1]);
    globalflag = globalflag || localflag;
    if (localflag) {
      fail("*** Fitlin: A held parameter does not have its assigned value");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.