@Test
@Ignore
public void computeJulianEasterMeanCorrections() {

    // we compute the occurences of julian Easter (in gregorian dates)
    // from 1 April to 20 Mey, from 1583 to 1583*2*532
    // of course, that choice is arbitrary...
    int[] prob = new int[50];
    for (int i = 0; i < 2 * Utilities.CYCLE; ++i) {
        Day julianEaster = Utilities.julianEaster3(1583 + i, true);
        Day first = new Day(1583 + i, Month.April, 0);
        prob[julianEaster.difference(first)]++;
    }
    // now, we compute the average length of Easter effect in the different months
      // March
    // effect length from 1 to 30
    double[] march = new double[30], april = new double[30], may = new double[30];
    for (int l = 1; l <= 30; ++l) {
        for (int ie = 0; ie < prob.length; ++ie) {
            double p = prob[ie];
            if (p > 0) {
                int d0 = ie - l, d1 = ie; // d0 is the first day of the Easter effect (included), d1 the last day (excluded)
                
                // number of days in march:
                int n0 = -d0;
                if (n0 > 0) {
                    march[l - 1]  +=p * n0;
                }else{
                    n0=0;
                }
                // number of days in april
                int n1=Math.min(d1, 30)-Math.max(0, d0);
                if (n1 > 0) {
                    april[l - 1] += p * n1;
                }else
                    n1=0;
                // number of day in may
                int n2=l-n1-n0;
                if (n2 > 0) {
                    may[l - 1] += p * n2;
                }
                
            }
        }
    }
    for (int i = 0; i < march.length; ++i) {
        System.out.print(march[i]);
        System.out.print('\t');
    }
    System.out.println("");
    // April
    for (int i = 0; i < april.length; ++i) {
        System.out.print(april[i]);
        System.out.print('\t');
    }
    System.out.println("");
    for (int i = 0; i < may.length; ++i) {
        System.out.print(may[i]);
        System.out.print('\t');
    }
    System.out.println("");
}