Changeset 7025


Ignore:
Timestamp:
10/04/10 18:54:09 (9 years ago)
Author:
aivar
Message:

Deal with sigma and instrument response.

File:
1 edited

Legend:

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

    r6938 r7025  
    4848    double m_xInc = ICurveFitter.DEFAULT_X_INC; 
    4949    boolean[] m_free; 
     50    double[] m_instrumentResponse; 
    5051     
    5152    /** 
     
    9495     * @inheritDoc 
    9596     */ 
     97    public double[] getInstrumentResponse() { 
     98        return m_instrumentResponse; 
     99    } 
     100 
     101    /** 
     102     * @inheritDoc 
     103     */ 
     104    public void setInstrumentResponse(double response[]) { 
     105        m_instrumentResponse = response; 
     106    } 
     107 
     108    /** 
     109     * @inheritDoc 
     110     */ 
    96111     public int fitData(ICurveFitData[] data) { 
    97         int nData = data[0].getYData().length; 
     112        int nData = data[0].getYCount().length; 
    98113        return fitData(data, 0, nData - 1); 
    99114    } 
     
    103118     */ 
    104119    abstract public int fitData(ICurveFitData[] data, int start, int stop); 
    105  
    106     public void log(String msg) { 
    107       // TODO: Use SLF4J for logging? 
    108       System.out.println(msg); 
    109     } 
    110  
    111120} 
    112121 
Note: See TracChangeset for help on using the changeset viewer.