Class LMSEPolynomialEstimator

java.lang.Object
com.irurueta.numerical.polynomials.estimators.PolynomialEstimator
com.irurueta.numerical.polynomials.estimators.LMSEPolynomialEstimator

public class LMSEPolynomialEstimator extends PolynomialEstimator
This class defines an LMSE (Least Mean Square Error) estimator of a polynomial of a given degree using points where polynomials (or its derivatives or integrals) are evaluated.
  • Field Details

    • DEFAULT_ALLOW_LMSE_SOLUTION

      public static final boolean DEFAULT_ALLOW_LMSE_SOLUTION
      Indicates if by default an LMSE (Least Mean Square Error) solution is allowed if more evaluations than the required minimum are provided.
      See Also:
    • allowLMSESolution

      private boolean allowLMSESolution
      Indicates if an LMSE (Least Mean Square Error) solution is allowed if more evaluations than the required minimum are provided. If false, the exceeding evaluations are ignored, and only the first minimum required are used.
  • Constructor Details

    • LMSEPolynomialEstimator

      public LMSEPolynomialEstimator()
      Constructor.
    • LMSEPolynomialEstimator

      public LMSEPolynomialEstimator(int degree)
      Constructor.
      Parameters:
      degree - degree of polynomial to be estimated.
      Throws:
      IllegalArgumentException - if provided degree is less than 1.
    • LMSEPolynomialEstimator

      public LMSEPolynomialEstimator(List<PolynomialEvaluation> evaluations)
      Constructor.
      Parameters:
      evaluations - collection of polynomial evaluations.
    • LMSEPolynomialEstimator

      public LMSEPolynomialEstimator(PolynomialEstimatorListener listener)
      Constructor.
      Parameters:
      listener - listener to be notified of events.
    • LMSEPolynomialEstimator

      public LMSEPolynomialEstimator(int degree, List<PolynomialEvaluation> evaluations)
      Constructor.
      Parameters:
      degree - degree of polynomial to be estimated.
      evaluations - collection of polynomial evaluations.
      Throws:
      IllegalArgumentException - if provided degree is less than 1.
    • LMSEPolynomialEstimator

      public LMSEPolynomialEstimator(int degree, PolynomialEstimatorListener listener)
      Constructor.
      Parameters:
      degree - degree of polynomial to be estimated.
      listener - listener to be notified of events.
      Throws:
      IllegalArgumentException - if provided degree is less than 1.
    • LMSEPolynomialEstimator

      public LMSEPolynomialEstimator(List<PolynomialEvaluation> evaluations, PolynomialEstimatorListener listener)
      Constructor.
      Parameters:
      evaluations - collection of polynomial evaluations.
      listener - listener to be notified of events.
    • LMSEPolynomialEstimator

      public LMSEPolynomialEstimator(int degree, List<PolynomialEvaluation> evaluations, PolynomialEstimatorListener listener)
      Constructor.
      Parameters:
      degree - degree of polynomial to be estimated.
      evaluations - collection of polynomial evaluations.
      listener - listener to be notified of events.
      Throws:
      IllegalArgumentException - if provided degree is less than 1.
  • Method Details

    • isLMSESolutionAllowed

      public boolean isLMSESolutionAllowed()
      Indicates if an LMSE (Least Mean Square Error) solution is allowed if more evaluations than the required minimum are provided. If false, the exceeding evaluations are ignored, and only the first minimum required are used.
      Returns:
      true if LMSE solution is allowed, false otherwise.
    • setLMSESolutionAllowed

      public void setLMSESolutionAllowed(boolean allowed) throws LockedException
      Specified if an LMSE (Least Mean Square Error) solution is allowed if more evaluations than the required minimum are provided. If false, the exceeding evaluations are ignored, and only the first minimum required are used.
      Parameters:
      allowed - true if LMSE solution is allowed, false otherwise.
      Throws:
      LockedException - if estimator is locked.
    • estimate

      Estimates a polynomial based on provided evaluations.
      Specified by:
      estimate in class PolynomialEstimator
      Returns:
      estimated polynomial.
      Throws:
      LockedException - if estimator is locked.
      NotReadyException - if estimator is not ready.
      PolynomialEstimationException - if polynomial estimation fails.
    • getType

      public PolynomialEstimatorType getType()
      Returns type of polynomial estimator.
      Specified by:
      getType in class PolynomialEstimator
      Returns:
      type of polynomial estimator.