Fixed a bug in hyperparameterInferencer

-Added check_c, check_d to take of invalid or extremely large values of
c and d