SourceXtractorPlusPlus
0.15
Please provide a description of the project.
|
Public Member Functions | |
def | __init__ (self, limits, type) |
def | get_limits (self) |
def | get_type (self) |
def | __str__ (self) |
Private Attributes | |
__limits | |
__type | |
Limit, and normalize, the range of values for a model fitting parameter. Parameters ---------- limits : a tuple (min, max), or a callable that receives a source, and returns a tuple (min, max) type : RangeType Notes ----- RangeType.LINEAR Normalized to engine space using a sigmoid function .. math:: engine = \ln \frac{world - min}{max-world} \\ world = min + \frac{max - min}{1 + e^{engine}} RangeType.EXPONENTIAL Normalized to engine space using an exponential sigmoid function .. math:: engine = \ln \left( \frac{\ln(world/min)}{\ln(max /world)} \right) \\ world = min * e^\frac{ \ln(max / min) }{ (1 + e^{-engine}) }
Definition at line 38 of file model_fitting.py.
def sourcextractor.config.model_fitting.Range.__init__ | ( | self, | |
limits, | |||
type | |||
) |
Constructor.
Definition at line 68 of file model_fitting.py.
def sourcextractor.config.model_fitting.Range.__str__ | ( | self | ) |
Returns ------- str Human readable representation for the object
Definition at line 92 of file model_fitting.py.
References sourcextractor.config.model_fitting.Range.__limits, and sourcextractor.config.model_fitting.Range.__type.
def sourcextractor.config.model_fitting.Range.get_limits | ( | self | ) |
Returns ------- callable Receives a source, and returns a tuple (min, max)
Definition at line 75 of file model_fitting.py.
References sourcextractor.config.model_fitting.Range.__limits.
def sourcextractor.config.model_fitting.Range.get_type | ( | self | ) |
Returns ------- RangeType
Definition at line 84 of file model_fitting.py.
References sourcextractor.config.model_fitting.Range.__type.
|
private |
Definition at line 72 of file model_fitting.py.
Referenced by sourcextractor.config.model_fitting.Range.__str__(), and sourcextractor.config.model_fitting.Range.get_limits().
|
private |
Definition at line 73 of file model_fitting.py.
Referenced by sourcextractor.config.model_fitting.Range.__str__(), and sourcextractor.config.model_fitting.Range.get_type().