Fittable1DModel#

class astropy.modeling.Fittable1DModel(*args, meta=None, name=None, **kwargs)[source]#

Bases: FittableModel

Base class for one-dimensional fittable models.

This class provides an easier interface to defining new models. Examples can be found in astropy.modeling.functional_models.

Attributes Summary

n_inputs

The number of inputs.

n_outputs

The number of outputs.

Methods Summary

__call__(*inputs[, model_set_axis, ...])

Evaluate this model using the given input(s) and the parameter values that were specified when the model was instantiated.

Attributes Documentation

n_inputs = 1#

The number of inputs.

n_outputs = 1#

The number of outputs.

Methods Documentation

__call__(*inputs, model_set_axis=None, with_bounding_box=False, fill_value=nan, equivalencies=None, inputs_map=None, **new_inputs)#

Evaluate this model using the given input(s) and the parameter values that were specified when the model was instantiated.