LineFinder1D

class spectacle.fitting.LineFinder1D(ions=None, continuum=None, defaults=None, z=None, auto_fit=True, velocity_convention='relativistic', output='flux', fitter=None, with_rejection=False, fitter_args=None, *args, **kwargs)[source] [edit on github]

Bases: astropy.modeling.Fittable2DModel

Attributes Summary

fitter

input_units_allow_dimensionless

Allow dimensionless input (and corresponding output).

inputs

min_distance

model_result

outputs

param_names

threshold

Methods Summary

__call__(self, x, \*args[, auto_fit])

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

evaluate(self, x, y, threshold, …)

Evaluate the model on some input variables.

Attributes Documentation

fitter
input_units_allow_dimensionless

Allow dimensionless input (and corresponding output). If this is True, input values to evaluate will gain the units specified in input_units. If this is a dictionary then it should map input name to a bool to allow dimensionless numbers for that input. Only has an effect if input_units is defined.

inputs = ('x', 'y')
min_distance
model_result
outputs = ('y',)
param_names = ('threshold', 'min_distance')
threshold

Methods Documentation

__call__(self, x, *args, auto_fit=None, **kwargs)[source] [edit on github]

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

evaluate(self, x, y, threshold, min_distance, *args, **kwargs)[source] [edit on github]

Evaluate the model on some input variables.