Source code for glmdenoise.utils.choose
"""
function f = choose(flag,yes,no)
function f = choose(flag,yes,no)
<flag> is a truth value (0 or 1)
<yes> is something
<no> is something
if <flag>, return <yes>. otherwise, return <no>.
"""
"""
function f = choose(flag,yes,no)
function f = choose(flag,yes,no)
<flag> is a truth value (0 or 1)
<yes> is something
<no> is something
if <flag>, return <yes>. otherwise, return <no>.
"""