Commit 05071ec56644c662cc75f73ea5edaf0bc8ac5b0e

Authored by Jürgen Knödlseder
1 parent 39efcac2

Fit prefactor and index.

test/data/model_background_cube.xml
@@ -2,8 +2,8 @@ @@ -2,8 +2,8 @@
2 <source_library title="source library"> 2 <source_library title="source library">
3 <source name="CTABackgroundModel" type="CTABackground" instrument="CTA"> 3 <source name="CTABackgroundModel" type="CTABackground" instrument="CTA">
4 <spectrum type="PowerLaw"> 4 <spectrum type="PowerLaw">
5 - <parameter name="Prefactor" scale="1.0" value="1.0" min="1e-3" max="1e+3" free="0"/>  
6 - <parameter name="Index" scale="1.0" value="0.0" min="-5.0" max="+5.0" free="0"/> 5 + <parameter name="Prefactor" scale="1.0" value="1.0" min="1e-3" max="1e+3" free="1"/>
  6 + <parameter name="Index" scale="1.0" value="0.0" min="-5.0" max="+5.0" free="1"/>
7 <parameter name="Scale" scale="1e6" value="1.0" min="0.01" max="1000.0" free="0"/> 7 <parameter name="Scale" scale="1e6" value="1.0" min="0.01" max="1000.0" free="0"/>
8 </spectrum> 8 </spectrum>
9 <spatialModel type="MapCubeFunction" file="data/test_cube.fits"> 9 <spatialModel type="MapCubeFunction" file="data/test_cube.fits">