Changeset e96a852 in sasview


Ignore:
Timestamp:
Jun 30, 2008 2:53:20 PM (16 years ago)
Author:
Mathieu Doucet <doucetm@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
35adaf6
Parents:
a4bd2ac
Message:

From Raiza: n_term estimator

Location:
pr_inversion
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • pr_inversion/invertor.py

    r9a23253e re96a852  
    521521         
    522522        return c_0, err_0 
    523          
     523 
     524    def estimate_numterms(self, isquit_func=None): 
     525        """ 
     526            Returns a reasonable guess for the 
     527            number of terms 
     528             
     529            @return: number of terms, alpha, message 
     530        """ 
     531        from num_term import Num_terms 
     532        estimator = Num_terms(self.clone()) 
     533         
     534        return estimator.num_terms(isquit_func) 
     535                     
    524536    def estimate_alpha(self, nfunc): 
    525537        """ 
Note: See TracChangeset for help on using the changeset viewer.