Changeset 7162
 Timestamp:
 11/05/10 21:31:20 (9 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

branches/maven/projects/curvefitter/src/main/java/loci/curvefitter/JaolhoCurveFitter.java
r7132 r7162 152 152 double aTerm = a[2 * e]; 153 153 double bTerm = a[2 * e + 1]; 154 sum += aTerm * Math.exp( bTerm * x);154 sum += aTerm * Math.exp(x / bTerm); 155 155 } 156 156 double cTerm = a[2 * numExp]; … … 167 167 switch (off) { 168 168 case 0: 169 return Math.exp( bTerm * x); // a term169 return Math.exp(x / bTerm); // a term 170 170 case 1: 171 return aTerm * x * Math.exp( bTerm * x); // b term171 return aTerm * x * Math.exp(x / bTerm); // b term 172 172 } 173 173 throw new RuntimeException("No such parameter index: " +
Note: See TracChangeset
for help on using the changeset viewer.