Instrument models
ConstantGain
¶
Bases: GainModel
A constant gain model
Source code in src/jaxspec/model/instrument.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | |
__init__(prior_distribution)
¶
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
prior_distribution
|
Distribution
|
the prior distribution for the gain value. |
required |
Source code in src/jaxspec/model/instrument.py
25 26 27 28 29 30 31 | |
ConstantShift
¶
Bases: ShiftModel
A constant shift model
Source code in src/jaxspec/model/instrument.py
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | |
__init__(prior_distribution)
¶
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
prior_distribution
|
Distribution
|
the prior distribution for the shift value. |
required |
Source code in src/jaxspec/model/instrument.py
57 58 59 60 61 62 | |
GainModel
¶
Bases: ABC, Module
Generic class for a gain model
Source code in src/jaxspec/model/instrument.py
10 11 12 13 14 15 16 17 | |
InstrumentModel
¶
Bases: Module
Source code in src/jaxspec/model/instrument.py
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | |
__init__(reference_observation_name, gain_model=None, shift_model=None)
¶
Encapsulate an instrument model, build as a combination of a shift and gain model.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reference_observation_name
|
The observation to use as a reference |
required | |
gain_model
|
The gain model |
required | |
shift_model
|
The shift model |
required |
Source code in src/jaxspec/model/instrument.py
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | |
get_gain_and_shift_model(observation_name)
¶
Return the gain and shift models for the given observation. It should be called within a numpyro model.
Source code in src/jaxspec/model/instrument.py
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | |
ShiftModel
¶
Bases: ABC, Module
Generic class for a shift model
Source code in src/jaxspec/model/instrument.py
42 43 44 45 46 47 48 49 | |