I currently have functions like
function AnalyticalExpectation(distribution::Normal, g::Function)
if(g==log)
return ...
else
println("Not yet implemented")
end
end
Is there a way to make this
function AnalyticalExpectation(distribution::Normal, g::IsLog)
return ...
end
instead?