Function pecsim::log10_safe

Function Documentation

double pecsim::log10_safe(double value)

Computes the base-10 logarithm of a value, ensuring the value is greater than 0 to avoid domain errors.

Parameters:

value – the value to compute the logarithm for

Returns:

double the base-10 logarithm of the value