Shift¶
-
class
astropy.modeling.functional_models.
Shift
(offset=0, **kwargs)[source] [edit on github]¶ Bases:
astropy.modeling.Fittable1DModel
Shift a coordinate.
Parameters: offset : float
Offset to add to a coordinate.
Attributes Summary
input_units
input_units_allow_dimensionless
input_units_strict
inputs
linear
offset
outputs
param_names
Methods Summary
__call__
(x[, model_set_axis, ...])Evaluate this model using the given input(s) and the parameter values that were specified when the model was instantiated. 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
¶
-
input_units_allow_dimensionless
= True¶
-
input_units_strict
= True¶
-
inputs
= ('x',)¶
-
linear
= True¶
-
offset
¶
-
outputs
= ('x',)¶
-
param_names
= ('offset',)¶
Methods Documentation
-
__call__
(x, model_set_axis=None, with_bounding_box=False, fill_value=nan, equivalencies=None) [edit on github]¶ Evaluate this model using the given input(s) and the parameter values that were specified when the model was instantiated.
-
static
evaluate
(x, offset)[source] [edit on github]¶ One dimensional Shift model function
-
static
fit_deriv
(x, *params)[source] [edit on github]¶ One dimensional Shift model derivative with respect to parameter
-
static
sum_of_implicit_terms
(x)[source] [edit on github]¶ Evaluate the implicit term (x) of one dimensional Shift model
-