Changeset 7290 for branches/maven


Ignore:
Timestamp:
12/01/10 19:58:41 (9 years ago)
Author:
aivar
Message:

Added method to get number of components in the fit.

File:
1 edited

Legend:

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

    r7031 r7290  
    3838 * Interface for a curve fitter. 
    3939 * 
    40  * <dl><dt><b>Source code:</b></dt> 
    41  * <dd><a href="http://dev.loci.wisc.edu/trac/java/browser/trunk/projects/curve-fitter/src/main/java/loci/curvefitter/ICurveFitter.java">Trac</a>, 
    42  * <a href="http://dev.loci.wisc.edu/svn/java/trunk/projects/curve-fitter/src/main/java/loci/curvefitter/ICurveFitter.java">SVN</a></dd></dl> 
    43  * 
    44  * @author Aivar Grislis grislis at wisc.edu 
     40 * @author Aivar Grislis 
    4541 */ 
    46 //TODO max iterations; c/b used in lieu of 'iterate()'?? 
    4742public interface ICurveFitter { 
    48     /** 
    49      * Fitting a Gaussian curve. 
    50      */ 
    51     public int GAUSSIAN = 0; //TODO s/b enums 
    5243 
    5344    /** 
    54      * Fitting an Exponential curve. 
     45     * Specifies curves that this fits. 
    5546     */ 
    56     public int EXPONENTIAL = 1; 
     47    public enum FitFunction { 
     48        SINGLE_EXPONENTIAL, DOUBLE_EXPONENTIAL, TRIPLE_EXPONENTIAL, STRETCHED_EXPONENTIAL 
     49    } 
    5750 
    5851    /** 
     
    6255 
    6356    /** 
    64      * Get curve shape we are fitting. 
     57     * Get function we are fitting. 
    6558     * 
    66      * @return curve type 
     59     * @return function type 
    6760     */ 
    68     int getCurveType(); 
     61    public FitFunction getFitFunction(); 
    6962 
    7063    /** 
    71      * Set curve shape we are fitting. 
     64     * Set function we are fitting. 
    7265     * 
    73      * @param curveType type of curve 
     66     * @param function 
    7467     */ 
    75     public void setCurveType(int curveType); 
     68    public void setFitFunction(FitFunction function); 
     69 
     70    /** 
     71     * Get number of function components. 
     72     * 
     73     * @return number of components 
     74     */ 
     75    public int getNumberComponents(); 
    7676 
    7777    /** 
     
    102102 
    103103    /** 
    104      * Get instrument resopnse data.  Input to fit only. 
     104     * Get instrument response data.  Input to fit only. 
    105105     * 
    106106     * @return array of data or null if not set 
Note: See TracChangeset for help on using the changeset viewer.