Class QuadraticClockModel

  • All Implemented Interfaces:
    ClockModel

    public class QuadraticClockModel
    extends Object
    implements ClockModel
    Quadratic clock model.
    Since:
    12.1
    Author:
    Luc Maisonobe
    • Constructor Detail

      • QuadraticClockModel

        public QuadraticClockModel​(AbsoluteDate referenceDate,
                                   double a0,
                                   double a1,
                                   double a2)
        Simple constructor.
        Parameters:
        referenceDate - reference date
        a0 - constant term
        a1 - linear term
        a2 - quadratic term
    • Method Detail

      • getOffset

        public ClockOffset getOffset​(AbsoluteDate date)
        Get the clock offset at date.
        Specified by:
        getOffset in interface ClockModel
        Parameters:
        date - date at which offset is requested
        Returns:
        clock offset at specified date
      • toGradientModel

        public QuadraticFieldClockModel<Gradient> toGradientModel​(int freeParameters,
                                                                  Map<String,​Integer> indices,
                                                                  AbsoluteDate date)
        Convert to gradient model.
        Parameters:
        freeParameters - total number of free parameters in the gradient
        indices - indices of the differentiation parameters in derivatives computations, must be span name and not driver name
        date - date at which model must be valid
        Returns:
        converted clock model