Cobaya: step function likelihood

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Helena Garcia
Posts: 29
Joined: October 05 2021
Affiliation: UCI

Cobaya: step function likelihood

Post 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!
Antony Lewis
Posts: 1973
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: Cobaya: step function likelihood

Post 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
Helena Garcia
Posts: 29
Joined: October 05 2021
Affiliation: UCI

Re: Cobaya: step function likelihood

Post by Helena Garcia »

Thank you!
Post Reply