Shift¶
-
class
astropy.modeling.functional_models.Shift(offset=0, **kwargs)[source]¶ Bases:
astropy.modeling.Fittable1DModelShift a coordinate.
Parameters: - offset : float
Offset to add to a coordinate.
Attributes Summary
input_unitsThis property is used to indicate what units or sets of units the evaluate method expects, and returns a dictionary mapping inputs to units (or Noneif any units are accepted).linearoffsetparam_namesMethods Summary
evaluate(x, offset)One dimensional Shift model function fit_deriv(x, *params)One dimensional Shift model derivative with respect to parameter sum_of_implicit_terms(x)Evaluate the implicit term (x) of one dimensional Shift model Attributes Documentation
-
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
Noneif 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.
-
linear= True¶
-
offset= Parameter('offset', value=0.0)¶
-
param_names= ('offset',)¶
Methods Documentation