Scale¶
-
class
astropy.modeling.functional_models.Scale(factor=1, **kwargs)[source]¶ Bases:
astropy.modeling.Fittable1DModelMultiply a model by a dimensionless factor.
Parameters: - factor : float
Factor by which to scale a coordinate.
Notes
If
factoris aQuantitythen the units will be stripped before the scaling operation.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).linearparam_namesMethods Summary
evaluate(x, factor)One dimensional Scale model function fit_deriv(x, *params)One dimensional Scale model derivative with respect to parameter Attributes Documentation
-
factor= Parameter('factor', value=1.0)¶
-
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 overridden since it will return the input units based on the annotations.
-
linear= True¶
-
param_names= ('factor',)¶
Methods Documentation