SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
sourcextractor.config.model_fitting.ConstantModel Class Reference
Inheritance diagram for sourcextractor.config.model_fitting.ConstantModel:
Collaboration diagram for sourcextractor.config.model_fitting.ConstantModel:

Public Member Functions

 __init__ (self, value)
 to_string (self, show_params=False)
Public Member Functions inherited from sourcextractor.config.model_fitting.ModelBase
 get_params (self)

Public Attributes

 value = value if isinstance(value, ParameterBase) else ConstantParameter(value)

Detailed Description

A model that is constant through all the image.

Parameters
----------
value: ParameterBase or float
    Value to add to the value of all pixels from the model.

Definition at line 499 of file model_fitting.py.

Constructor & Destructor Documentation

◆ __init__()

sourcextractor.config.model_fitting.ConstantModel.__init__ ( self,
value )
Constructor.

Definition at line 509 of file model_fitting.py.

Member Function Documentation

◆ to_string()

sourcextractor.config.model_fitting.ConstantModel.to_string ( self,
show_params = False )
Return a human readable representation of the model.

Parameters
----------
show_params: bool
    If True, include information about the parameters.

Returns
-------
str

Definition at line 516 of file model_fitting.py.

References Euclid::Histogram::HasComputeBins< typename BinType, typename IterType >.value, value, and sourcextractor.config.model_fitting.Prior.value.

Member Data Documentation

◆ value

sourcextractor.config.model_fitting.ConstantModel.value = value if isinstance(value, ParameterBase) else ConstantParameter(value)

Definition at line 514 of file model_fitting.py.

Referenced by to_string().


The documentation for this class was generated from the following file: