Class FieldDateDetector<T extends CalculusFieldElement<T>>

    • Field Detail

      • DEFAULT_MAX_CHECK

        public static final double DEFAULT_MAX_CHECK
        Default value for max check.
        Since:
        12.0
        See Also:
        Constant Field Values
      • DEFAULT_MIN_GAP

        public static final double DEFAULT_MIN_GAP
        Default value for minimum gap between added dates.
        Since:
        12.0
        See Also:
        Constant Field Values
      • DEFAULT_THRESHOLD

        public static final double DEFAULT_THRESHOLD
        Default value for convergence threshold.
        Since:
        12.0
        See Also:
        Constant Field Values
    • Constructor Detail

      • FieldDateDetector

        public FieldDateDetector​(FieldAbsoluteDate<T> fieldAbsoluteDate)
        Build a new instance from a fielded date.
        Parameters:
        fieldAbsoluteDate - fielded date
        Since:
        13.0
      • FieldDateDetector

        @SafeVarargs
        protected FieldDateDetector​(FieldEventDetectionSettings<T> detectionSettings,
                                    FieldEventHandler<T> handler,
                                    double minGap,
                                    FieldTimeStamped<T>... dates)
        Protected constructor with full parameters.

        This constructor is not public as users are expected to use the builder API with the various withXxx() methods to set up the instance in a readable manner without using a huge amount of parameters.

        Parameters:
        detectionSettings - event detection settings
        handler - event handler to call at event occurrences
        minGap - minimum gap between added dates (s)
        dates - list of event dates