@Test(expected = IllegalArgumentException.class) public void invalidLookbackPeriod() { new SmaPointForecasterParams() .setLookBackPeriod(-1) .validate(); }
@Override public void validate() { isStrictlyPositive(lookBackPeriod, "Required: lookBackPeriod > 0"); isTrue(initialPeriodOfValuesValid(), "When specified, initialPeriodOfValues.size must equal lookBackPeriod"); }
SmaPointForecasterParams implements AlgoParams { @Override public void validate() { isStrictlyPositive(lookBackPeriod, "Required: lookBackPeriod > 0"); isTrue(initialPeriodOfValuesValid(), "When specified, initialPeriodOfValues.size must equal lookBackPeriod"); } }
SmaPointForecasterParams implements AlgoParams { @Override public void validate() { isStrictlyPositive(lookBackPeriod, "Required: lookBackPeriod > 0"); isTrue(initialPeriodOfValuesValid(), "When specified, initialPeriodOfValues.size must equal lookBackPeriod"); }  }
SmaPointForecasterParams implements AlgoParams { @Override public void validate() { isStrictlyPositive(lookBackPeriod, "Required: lookBackPeriod > 0"); isTrue(initialPeriodOfValuesValid(), "When specified, initialPeriodOfValues.size must equal lookBackPeriod"); }  @Override void validate(); }
SmaPointForecasterParams implements AlgoParams { @Override public void validate() { isStrictlyPositive(lookBackPeriod, "Required: lookBackPeriod > 0"); isTrue(initialPeriodOfValuesValid(), "When specified, initialPeriodOfValues.size must equal lookBackPeriod"); }  @Override void validate();  }