Package com.nr.model

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


      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

//    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

//    }
//    System.out.printf(endl;

    // Now free one of the fixed parameters
    myfit.free(1);
    myfit.fit();

    localflag = (myfit.a[1] == amp[1]);
    globalflag = globalflag || localflag;
    if (localflag) {
      fail("*** Fitlin: A free parameter still has 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.