Bases: astropy.modeling.Fittable1DModel
One dimensional Gaussian model.
| Parameters: | amplitude : float 
 mean : float 
 stddev : float 
 | 
|---|---|
| Other Parameters: | |
| fixed : a dict 
 tied : dict 
 bounds : dict eqcons : list 
 ineqcons : list 
 | |
See also
Notes
Model formula:
Examples
>>> from astropy.modeling import models
>>> def tie_center(model):
...         mean = 50 * model.stddev
...         return mean
>>> tied_parameters = {'mean': tie_center}
Specify that ‘mean’ is a tied parameter in one of two ways:
>>> g1 = models.Gaussian1D(amplitude=10, mean=5, stddev=.3,
...                             tied=tied_parameters)
or
>>> g1 = models.Gaussian1D(amplitude=10, mean=5, stddev=.3)
>>> g1.mean.tied
False
>>> g1.mean.tied = tie_center
>>> g1.mean.tied
<function tie_center at 0x...>
Fixed parameters:
>>> g1 = models.Gaussian1D(amplitude=10, mean=5, stddev=.3,
...                        fixed={'stddev': True})
>>> g1.stddev.fixed
True
or
>>> g1 = models.Gaussian1D(amplitude=10, mean=5, stddev=.3)
>>> g1.stddev.fixed
False
>>> g1.stddev.fixed = True
>>> g1.stddev.fixed
True
Attributes Summary
| amplitude | |
| input_names | list() -> new empty list | 
| mean | |
| param_names | list() -> new empty list | 
| stddev | 
Methods Summary
| eval(*args, **kwargs) | Deprecated since version 1.0. | 
| evaluate(x, amplitude, mean, stddev) | Gaussian1D model function. | 
| fit_deriv(x, amplitude, mean, stddev) | Gaussian1D model function derivatives. | 
Attributes Documentation
Methods Documentation
Deprecated since version 1.0: The eval method is deprecated and may be removed in a future version. Use Gaussian1D.evaluate instead.
Gaussian1D model function.
Gaussian1D model function.
Gaussian1D model function derivatives.