protected {KinMixLite} | R Documentation |
Catch numerical errors, and return -Inf
Description
Attempts to catch numerical erros in evaluating the expression x
, delivering a default result instead of NaN or other failures
Usage
protected(x,default=-Inf)
Arguments
x |
expression to be evaluated, typically the log-likelihood of a modified mixture model |
default |
value to be delivered if numerical errors are encountered |
Value
Returns -Inf in case of error, otherwise the value of x
Author(s)
Peter Green (P.J.Green@bristol.ac.uk)
[Package KinMixLite version 2.1.0 Index]