fermi-lat / Likelihood

BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

setScale and priors #112

Open jballet opened 1 year ago

jballet commented 1 year ago

When priors are used on a particular parameter, a rescaling (by setScale) wrecks the fit completely, because suddenly the priors will pull toward a different goal in natural units (value*scale). Of course the user can handle this by changing the priors manually, but it would be much safer if it was done internally, so that mean is multiplied by oldscale/newscale and sigma by abs(oldscale/newscale) as soon as setScale is applied.