SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
sourcextractor.config.model_fitting.ConstantParameter Class Reference
Inheritance diagram for sourcextractor.config.model_fitting.ConstantParameter:
Inheritance graph
[legend]
Collaboration diagram for sourcextractor.config.model_fitting.ConstantParameter:
Collaboration graph
[legend]

Public Member Functions

 __init__ (self, value)
 
 get_value (self, o)
 
 __str__ (self)
 

Private Attributes

 __value
 
 __callable
 

Additional Inherited Members

- Public Attributes inherited from sourcextractor.config.model_fitting.ParameterBase
 id
 

Detailed Description

A parameter with a single value that remains constant. It will not be fitted.

Parameters
----------
value : float, or callable that receives a source and returns a float
    Value for this parameter

Definition at line 201 of file model_fitting.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 211 of file model_fitting.py.

Member Function Documentation

◆ __str__()

sourcextractor.config.model_fitting.ConstantParameter.__str__ ( self)
Returns
-------
str
    Human readable representation for the object

Reimplemented from sourcextractor.config.model_fitting.ParameterBase.

Definition at line 232 of file model_fitting.py.

References sourcextractor.config.model_fitting.ConstantParameter.__value.

◆ get_value()

sourcextractor.config.model_fitting.ConstantParameter.get_value ( self,
o )
Parameters
----------
o : object being fitted

Returns
-------
float
    Value of the constant parameter

Definition at line 219 of file model_fitting.py.

References sourcextractor.config.model_fitting.Range.__callable, sourcextractor.config.model_fitting.Unbounded.__callable, and sourcextractor.config.model_fitting.ConstantParameter.__callable.

Member Data Documentation

◆ __callable

sourcextractor.config.model_fitting.ConstantParameter.__callable
private

◆ __value

sourcextractor.config.model_fitting.ConstantParameter.__value
private

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