Ignore:
Timestamp:
11/11/11 18:24:45 (8 years ago)
Author:
aivar
Message:

Working on calling the curvefitter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/projects/slim-plugin/src/main/java/imagej/slim/fitting/callable/SLIMCurveCallable.java

    r7805 r7806  
    4040import imagej.slim.fitting.params.ILocalFitResults; 
    4141import java.util.Random; 
     42import loci.curvefitter.CurveFitData; 
     43import loci.curvefitter.GrayCurveFitter; 
     44import loci.curvefitter.GrayNRCurveFitter; 
     45import loci.curvefitter.ICurveFitData; 
     46import loci.curvefitter.ICurveFitter; 
     47import loci.curvefitter.JaolhoCurveFitter; 
     48import loci.curvefitter.MarkwardtCurveFitter; 
     49import loci.curvefitter.SLIMCurveFitter; 
    4250 
    4351/** 
     
    4654 */ 
    4755public class SLIMCurveCallable implements IFittingEngineCallable { 
    48     private IGlobalFitParams _params; 
    49     private ILocalFitParams _data; 
     56    private IGlobalFitParams _globalParams; 
     57    private ILocalFitParams _localParams; 
    5058    private ILocalFitResults _result; 
     59    private ICurveFitter _curveFitter; 
    5160     
    52     public void setup(final IGlobalFitParams params, final ILocalFitParams data) { 
    53         _params = params; 
    54         _data = data; 
     61    public void setup(final IGlobalFitParams globalParams, final ILocalFitParams localParams) { 
     62        _globalParams = globalParams; 
     63        _localParams = localParams; 
    5564    } 
    5665     
    5766    public ILocalFitResults call() { 
    58         System.out.println(">>> " + _data.getId() + "-" + Thread.currentThread().getName()); 
     67        System.out.println(">>> " + _localParams.getId() + "-" + Thread.currentThread().getName()); 
    5968        _result = new LocalFitResult(); 
    60         _result.setId(_data.getId()); 
     69        _result.setId(_localParams.getId()); 
    6170  
    6271        if (true) { 
     
    7079        } 
    7180         
    72         System.out.println("<<< " + _data.getId() + "-" + Thread.currentThread().getName()); 
     81        System.out.println("<<< " + _localParams.getId() + "-" + Thread.currentThread().getName()); 
    7382        return _result; 
    7483    } 
Note: See TracChangeset for help on using the changeset viewer.