Class PolynomialFitter.ParameterBounds

java.lang.Object
edu.cnu.mdi.splot.fit.PolynomialFitter.ParameterBounds
Enclosing class:
PolynomialFitter

public static final class PolynomialFitter.ParameterBounds extends Object
Coefficient bounds for c0..cN. Use +/-infinity for "no bound".

This is retained as a polynomial-friendly API, but the actual enforcement is handled through the base class ParameterValidator mechanism (via clamping).

  • Method Details

    • size

      public int size()
      Returns:
      number of parameters (degree+1).
    • lower

      public double[] lower()
      Returns:
      defensive copy of lower bounds.
    • upper

      public double[] upper()
      Returns:
      defensive copy of upper bounds.
    • unbounded

      public static PolynomialFitter.ParameterBounds unbounded(int nParams)
      Create unbounded bounds for nParams parameters.
    • builder

      public static PolynomialFitter.ParameterBounds.Builder builder(int degree)
      Builder for coefficient bounds for a given degree.