X11Specification implements IProcSpecification, Cloneable { public void setSigma(double lsigma, double usigma) { if (usigma <= lsigma || lsigma <= 0.5) { throw new X11Exception("Invalid sigma options"); } lsigma_ = lsigma; usigma_ = usigma; }  static void fillDictionary(String prefix, Map<String, Class> dic); int getForecastHorizon(); int getBackcastHorizon(); int getHendersonFilterLength(); CalendarSigma getCalendarSigma(); SigmavecOption[] getSigmavec(); double getLowerSigma(); double getUpperSigma(); DecompositionMode getMode(); SymmetricFilter getTrendFilter(); SeasonalFilterOption[] getSeasonalFilters(); boolean isSeasonal(); void setSeasonal(boolean seas); boolean isExcludefcst(); void setExcludefcst(boolean excludefcst); boolean isDefault(); boolean isAutoHenderson(); void setForecastHorizon(int forecastsHorizon); void setBackcastHorizon(int backcastsHorizon); void setCalendarSigma(CalendarSigma calendarsigma); void setSigmavec(SigmavecOption[] sigmavec); void setMode(DecompositionMode mode); void setSigma(double lsigma, double usigma); void setLowerSigma(double lsigma); void setUpperSigma(double usigma); void setHendersonFilterLength(int len); void setSeasonalFilters(SeasonalFilterOption[] seasonalFilter); void setSeasonalFilter(SeasonalFilterOption seasonalFilter); BiasCorrection getBiasCorrection(); void setBiasCorrection(BiasCorrection bias); @Override X11Specification clone(); @Override boolean equals(Object obj); @Override int hashCode(); @Override InformationSet write(boolean verbose); @Override boolean read(InformationSet info); static final double DEF_LSIGMA; static final int DEF_FCASTS; static final String MODE; }
@Test(expected = X11Exception.class) public void testsetSigmaLowerBound() { X11Specification expected = new X11Specification(); expected.setSigma(0.2, 2.5); }