Wrapper function to protect calls to the posterior function. If posterior does not compute correctly, returns -100000.

protect(f)

Arguments

f

the function to be protected

Value

the protected function