Implement a function to calculate the IC (Information Coefficient) between a 1-day and 2-day alpha signal.
Use the Pearson correlation coefficient between the two aligned numeric arrays. Return 0.0 when either signal has zero variance.
The entry point is calculate_ic(one_day, two_day). It receives two equal-length arrays of real numbers and returns a real number in [-1, 1].
0.0 if either signal has zero variance.def calculate_ic(one_day, two_day):