astropy:docs

Fittable1DModel

class astropy.modeling.Fittable1DModel(*args, **kwargs)[source] [edit on github]

Bases: astropy.modeling.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.

Methods Summary

__call__(*inputs, **kwargs) Transforms data using this model.
eval() A method, classmethod, or staticmethod that implements evaluation of the function represented by this model.

Methods Documentation

__call__(*inputs, **kwargs)[source] [edit on github]

Transforms data using this model.

Parameters:

x : array-like or numeric value

Input coordinate values.

model_set_axis : int or False, optional

For Model instances representing a multiple-model set, this picks out which axis of the input array is used to map inputs to specific models in the set. If False, this indicates that the input array has no such axis, and instead the same input should be broadcast to all models in the set.

eval()[source] [edit on github]

A method, classmethod, or staticmethod that implements evaluation of the function represented by this model.

It must take arguments of the function’s independent variables, followed by the function’s parameters given in the same order they are listed by Model.param_names.

Page Contents