astropy:docs

Fittable2DModel

class astropy.modeling.Fittable2DModel(*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.

Attributes Summary

n_inputs int(x[, base]) -> integer
n_outputs int(x[, base]) -> integer

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.

Attributes Documentation

n_inputs = 2
n_outputs = 1

Methods Documentation

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

Transforms data using this model.

Parameters:

x : array-like or numeric value

First input coordinate values.

y : array-like or numeric value

Second 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