The error message did:
public static double getSigma(.....) does not return a value of type double through every possible path of execution.
If the first second and last if are all false, execution...