Class TermCriteria


  • public class TermCriteria
    extends Object
    • Field Detail

      • COUNT

        public static final int COUNT
        The maximum number of iterations or elements to compute
        See Also:
        Constant Field Values
      • MAX_ITER

        public static final int MAX_ITER
        The maximum number of iterations or elements to compute
        See Also:
        Constant Field Values
      • EPS

        public static final int EPS
        The desired accuracy threshold or change in parameters at which the iterative algorithm is terminated.
        See Also:
        Constant Field Values
      • type

        public int type
      • maxCount

        public int maxCount
      • epsilon

        public double epsilon
    • Constructor Detail

      • TermCriteria

        public TermCriteria​(int type,
                            int maxCount,
                            double epsilon)
        Termination criteria for iterative algorithms.
        Parameters:
        type - the type of termination criteria: COUNT, EPS or COUNT + EPS.
        maxCount - the maximum number of iterations/elements.
        epsilon - the desired accuracy.
      • TermCriteria

        public TermCriteria()
        Termination criteria for iterative algorithms.
      • TermCriteria

        public TermCriteria​(double[] vals)