Scale

class astropy.modeling.functional_models.Scale[source] [edit on github]

Bases: astropy.modeling.Fittable1DModel

Multiply a model by a factor.

Parameters:

factor : float

Factor by which to scale a coordinate.

Attributes Summary

factor
fittable
input_units
input_units_allow_dimensionless
input_units_strict
inputs
linear
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(factor) One dimensional Scale model function
fit_deriv(*params) One dimensional Scale model derivative with respect to parameter

Attributes Documentation

factor
fittable = True
input_units
input_units_allow_dimensionless = True
input_units_strict = True
inputs = (u'x',)
linear = True
outputs = (u'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(factor)[source] [edit on github]

One dimensional Scale model function

static fit_deriv(*params)[source] [edit on github]

One dimensional Scale model derivative with respect to parameter