Exponential1D

class astropy.modeling.functional_models.Exponential1D(amplitude=1, tau=1, **kwargs)[source]

Bases: astropy.modeling.Fittable1DModel

One dimensional exponential model.

Parameters
amplitudefloat, optional
taufloat, optional

Attributes Summary

amplitude

input_units

This property is used to indicate what units or sets of units the evaluate method expects, and returns a dictionary mapping inputs to units (or None if any units are accepted).

param_names

tau

Methods Summary

evaluate(x, amplitude, tau)

Evaluate the model on some input variables.

fit_deriv(x, amplitude, tau)

Attributes Documentation

amplitude = Parameter('amplitude', value=1.0)
input_units

This property is used to indicate what units or sets of units the evaluate method expects, and returns a dictionary mapping inputs to units (or None if any units are accepted).

Model sub-classes can also use function annotations in evaluate to indicate valid input units, in which case this property should not be overridden since it will return the input units based on the annotations.

param_names = ('amplitude', 'tau')
tau = Parameter('tau', value=1.0)

Methods Documentation

static evaluate(x, amplitude, tau)[source]

Evaluate the model on some input variables.

static fit_deriv(x, amplitude, tau)[source]