Page 1 of 1

Cobaya: step function likelihood

Posted: November 21 2022
by Helena Garcia
Is it possible to add a step function in the likelihood block of the cobaya .yaml file?
For example, a gaussian when a parameter is greater than a fixed value, and 0 when the the parameter is smaller than that value. Is there any reference I can check on how to write this. Thanks!

Re: Cobaya: step function likelihood

Posted: November 22 2022
by Antony Lewis
You can add a lambda prior in the prior block as in the advanced example
https://cobaya.readthedocs.io/en/latest/example_advanced.html#example-advanced-shell

Re: Cobaya: step function likelihood

Posted: November 24 2022
by Helena Garcia
Thank you!