class SsviFormulaData implements SmileModelData, ImmutableBean, Serializable {

  @Override
  public boolean isAllowed(int index, double value) {
    switch (index) {
      case 0:
        return value > 0;
      case 1:
        return value >= -1 && value <= 1;
      case 2:
        return value > 0;
      default:
        throw new IllegalArgumentException("index " + index + " outside range");
    }
  }

  private  SsviFormulaData(
      DoubleArray parameters);

}