Changeset 4222


Ignore:
Timestamp:
07/22/08 14:27:48 (12 years ago)
Author:
curtis
Message:

Width of initial guess should be a percentage of total bins, not hardcoded.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/slim/LMCurveFitter.java

    r4221 r4222  
    108108  /** HACK - performs the actual fit. */ 
    109109  public void estimate() { 
    110     final float[] guess = {5, 10}; 
     110    int num = data.length; 
     111    final float[] guess = {num / 10, num / 5}; 
    111112    float[] params = new float[2 * numExp + 1]; 
    112113    for (int i=0; i<numExp; i++) { 
Note: See TracChangeset for help on using the changeset viewer.