Changeset 7162


Ignore:
Timestamp:
11/05/10 21:31:20 (9 years ago)
Author:
aivar
Message:

Convert lambda to tau.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/maven/projects/curve-fitter/src/main/java/loci/curvefitter/JaolhoCurveFitter.java

    r7132 r7162  
    152152        double aTerm = a[2 * e]; 
    153153        double bTerm = a[2 * e + 1]; 
    154         sum += aTerm * Math.exp(-bTerm * x); 
     154        sum += aTerm * Math.exp(-x / bTerm); 
    155155      } 
    156156      double cTerm = a[2 * numExp]; 
     
    167167      switch (off) { 
    168168        case 0: 
    169           return Math.exp(-bTerm * x); // a term 
     169          return Math.exp(-x / bTerm); // a term 
    170170        case 1: 
    171           return -aTerm * x * Math.exp(-bTerm * x); // b term 
     171          return -aTerm * x * Math.exp(-x / bTerm); // b term 
    172172      } 
    173173      throw new RuntimeException("No such parameter index: " + 
Note: See TracChangeset for help on using the changeset viewer.