Distance

class starkit.base.operations.stellar.Distance(distance, lum_density2cgs=1.0)[source]

Bases: StellarOperationModel

Attributes Summary

distance

operation_name

param_names

Names of the parameters that describe models of this type.

Methods Summary

evaluate(wavelength, flux, distance)

Evaluate the model on some input variables.

from_grid(grid[, distance])

Attributes Documentation

distance = Parameter('distance', value=10.0)
operation_name = 'distance'
param_names = ('distance',)

Names of the parameters that describe models of this type.

The parameters in this tuple are in the same order they should be passed in when initializing a model of a specific type. Some types of models, such as polynomial models, have a different number of parameters depending on some other property of the model, such as the degree.

When defining a custom model class the value of this attribute is automatically set by the Parameter attributes defined in the class body.

Methods Documentation

evaluate(wavelength, flux, distance)[source]

Evaluate the model on some input variables.

classmethod from_grid(grid, distance=10.0)[source]