Curve Fitting Toolbox    

Specifying Fit Options

You specify fit options with the Fit Options GUI. The fit options for the single-term exponential are shown below. The coefficient starting values and constraints are for the census data.

The available GUI options depend on whether you are fitting your data using a linear model, a nonlinear model, or a nonparametric fit type. All the options described below are available for nonlinear models. Method, Robust, and coefficient constraints (Lower and Upper) are available for linear models. Interpolants and smoothing splines include Method, but no configurable options.

Fitting Method and Algorithm

Finite Differencing Parameters

Fit Convergence Criteria

Coefficient Parameters

For more information about these fit options, refer to Optimization Options Parameters in the Optimization Toolbox documentation.

Default Coefficient Parameters

The default coefficient starting points and constraints for library and custom models are given below. If the starting points are optimized, then they are calculated heuristically based on the current data set. Random starting points are defined on the interval [0,1] and linear models do not require starting points.

If a model does not have constraints, the coefficients have neither a lower bound nor an upper bound. You can override the default starting points and constraints by providing your own values using the Fit Options GUI.

Table 3-1: Default Starting Points and Constraints
Model
Starting Points
Constraints
Custom linear
N/A
None
Custom nonlinear
Random
None
Exponentials
Optimized
None
Fourier series
Optimized
None
Gaussians
Optimized
ci > 0
Polynomials
N/A
None
Power series
Optimized
None
Rationals
Random
None
Sum of sines
Optimized
bi > 0
Weibull
Random
a, b > 0

Note that the sum of sines and Fourier series models are particularly sensitive to starting points, and the optimized values might be accurate for only a few terms in the associated equations. For an example that overrides the default starting values for the sum of sines model, refer to Example: Sectioning Periodic Data.


  Custom Equations Evaluating the Goodness of Fit