@Test public void testprobEaster() { double p = 0; for (int i = 0; i < 35; ++i) { double q = Utilities.probEaster(i); p += q; } org.junit.Assert.assertTrue(Math.abs(p - 1) < 1e-9); }
private double probEaster(int del) { return julian ? Utilities.probJulianEaster(del) : Utilities.probEaster(del); }
EasterRelatedDay implements ISpecialDay { private double probEaster(int del) { return julian ? Utilities.probJulianEaster(del) : Utilities.probEaster(del); } }
EasterRelatedDay implements ISpecialDay { private double probEaster(int del) { return julian ? Utilities.probJulianEaster(del) : Utilities.probEaster(del); } EasterRelatedDay();  EasterRelatedDay(int offset);  EasterRelatedDay(int offset, boolean julian);  EasterRelatedDay(int offset, double weight);  EasterRelatedDay(int offset, double weight, boolean julian); }
EasterRelatedDay implements ISpecialDay { private double probEaster(int del) { return julian ? Utilities.probJulianEaster(del) : Utilities.probEaster(del); } EasterRelatedDay();  EasterRelatedDay(int offset);  EasterRelatedDay(int offset, boolean julian);  EasterRelatedDay(int offset, double weight);  EasterRelatedDay(int offset, double weight, boolean julian); EasterRelatedDay reweight(double nweight); EasterRelatedDay plus(int ndays); boolean isJulian(); @Override double getWeight(); @Override boolean match(Context context); Day calcDay(int year); @Override Iterable<IDayInfo> getIterable(TsFrequency freq, Day start, Day end); @Override double[][] getLongTermMeanEffect(int freq); @Override boolean equals(Object obj); @Override int hashCode(); @Override TsDomain getSignificantDomain(TsFrequency freq, Day start, Day end); }
EasterRelatedDay implements ISpecialDay { private double probEaster(int del) { return julian ? Utilities.probJulianEaster(del) : Utilities.probEaster(del); } EasterRelatedDay();  EasterRelatedDay(int offset);  EasterRelatedDay(int offset, boolean julian);  EasterRelatedDay(int offset, double weight);  EasterRelatedDay(int offset, double weight, boolean julian); EasterRelatedDay reweight(double nweight); EasterRelatedDay plus(int ndays); boolean isJulian(); @Override double getWeight(); @Override boolean match(Context context); Day calcDay(int year); @Override Iterable<IDayInfo> getIterable(TsFrequency freq, Day start, Day end); @Override double[][] getLongTermMeanEffect(int freq); @Override boolean equals(Object obj); @Override int hashCode(); @Override TsDomain getSignificantDomain(TsFrequency freq, Day start, Day end); final int offset; static final EasterRelatedDay ShroveMonday; }