Commit 09dfb53c47ff30a22dd059e5e242a71e1dfc6b0a
1 parent
6c5b8ca3
Updates model.rst to include info on GModelSpectralGauss
Showing
1 changed file
with
25 additions
and
0 deletions
doc/source/user_manual/modules/model.rst
| ... | ... | @@ -198,6 +198,31 @@ The XML format for specifying a broken power law is: |
| 198 | 198 | <parameter name="BreakValue" scale="1e6" value="0.3" min="0.01" max="1000.0" free="1"/> |
| 199 | 199 | <parameter name="Index2" scale="-1" value="2.70" min="0.01" max="1000.0" free="1"/> |
| 200 | 200 | </spectrum> |
| 201 | + | |
| 202 | +Gaussian | |
| 203 | +^^^^^^^^ | |
| 204 | + | |
| 205 | +The ``GModelSpectralGauss`` class implements the gaussian function | |
| 206 | + | |
| 207 | +.. math:: | |
| 208 | + \frac{dN}{dE} = \frac{N_0}{\sqrt{2\pi}\sigma}\exp(\frac{-(E-E_bar)^2}{2 \sigma^2}) | |
| 209 | + | |
| 210 | +where the parameters in the XML definition have the following mappings: | |
| 211 | + | |
| 212 | +* :math:`N_0` = ``Prefactor`` | |
| 213 | +* :math:`E_bar` = ``Mean Energy`` | |
| 214 | +* :math:`sigma` = ``Energy Standard Deviation`` | |
| 215 | + | |
| 216 | +The XML format for specifying a power law is: | |
| 217 | + | |
| 218 | +.. code-block:: xml | |
| 219 | + | |
| 220 | + <spectrum type="Gaussian"> | |
| 221 | + <parameter name="Normalization" scale="1e-10" value="1.0" min="1e-07" max="1000.0" free="1"/> | |
| 222 | + <parameter name="Mean" scale="1e6" value="5.0" min="0.01" max="100.0" free="1"/> | |
| 223 | + <parameter name="Sigma" scale="1e6" value="1.0" min="0.01" max="100.0" free="1"/> | |
| 224 | + </spectrum> | |
| 225 | + | |
| 201 | 226 | |
| 202 | 227 | Node function |
| 203 | 228 | ^^^^^^^^^^^^^ | ... | ... |