Cobaya: step function likelihood

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

Cobaya: step function likelihood

Post by Helena Garcia » November 21 2022

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: 1842
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: Cobaya: step function likelihood

Post by Antony Lewis » November 22 2022

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: 17
Joined: October 05 2021
Affiliation: UCI

Re: Cobaya: step function likelihood

Post by Helena Garcia » November 24 2022

Thank you!

Post Reply