dd_gauss3¶
Sum of three Gaussian distributions
Syntax¶
info = dd_gauss3()
P = dd_gauss3(r,param)
- Parameters
r- Distance axis (N-array)param- Model parameters
- Returns
P- Distance distribution (N-array)info- Model information (struct)
Model¶
with
| Variable | Symbol | Default | Lower | Upper | Description |
|---|---|---|---|---|---|
param(1) |
2.5 | 1.0 | 20 | 1st Gaussian center distance | |
param(2) |
0.5 | 0.2 | 5 | 1st Gaussian FWHM | |
param(3) |
0.3 | 0 | 1 | 1st Gaussian relative amplitude | |
param(4) |
3.5 | 1.0 | 20 | 2nd Gaussian center distance | |
param(5) |
0.5 | 0.2 | 5 | 2nd Gaussian FWHM | |
param(6) : |
math: |
0.3 | 0 | 1 | 2nd Gaussian relative amplitude |
param(7) |
5.0 | 1.0 | 20 | 3rd Gaussian center distance | |
param(8) |
0.5 | 0.2 | 5 | 3rd Gaussian FWHM |
Example using default parameters:
Description¶
info = dd_gauss3()
Returns an info structure containing the specifics of the model:
info.model- Full name of the parametric model.info.nparam- Total number of adjustable parameters.info.parameters- Structure array with information on individual parameters.
P = dd_gauss3(r,param)
Computes the distance distribution model P from the axis r according to the parameters array param. The required parameters can also be found in the info structure.