Scale¶
-
class
astropy.modeling.functional_models.Scale(factor=1, **kwargs)[source] [edit on github]¶ Bases:
astropy.modeling.Fittable1DModelMultiply a model by a factor.
Parameters: factor : float
Factor by which to scale a coordinate.
Attributes Summary
factorfittableinput_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).inputslinearoutputsparam_namesMethods 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, factor)One dimensional Scale model function fit_deriv(x, *params)One dimensional Scale model derivative with respect to parameter Attributes Documentation
-
factor¶
-
fittable= True¶
-
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 overriden since it will return the input units based on the annotations.
-
inputs= ('x',)¶
-
linear= True¶
-
outputs= ('x',)¶
-
param_names= ('factor',)¶
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, factor)[source] [edit on github]¶ One dimensional Scale model function
-
static
fit_deriv(x, *params)[source] [edit on github]¶ One dimensional Scale model derivative with respect to parameter
-