Class AbstractFieldTimeInterpolator.InterpolationData

    • Constructor Detail

      • InterpolationData

        protected InterpolationData​(FieldAbsoluteDate<KK> interpolationDate,
                                    Collection<T> sample)
        Constructor (Collection variant).

        If sample is already a List, it is used directly; otherwise it is copied into a new ArrayList. Forwards to InterpolationData(FieldAbsoluteDate, List) — see that constructor for the sorted-sample precondition.

        Parameters:
        interpolationDate - interpolation date
        sample - time stamped sample (chronologically sorted)
      • InterpolationData

        protected InterpolationData​(FieldAbsoluteDate<KK> interpolationDate,
                                    List<T> sample)
        Constructor.

        Precondition: sample must be sorted in chronological order. Passing an unsorted sample yields undefined neighbors and may throw TimeStampedCacheException. Prior implementations silently sorted the input; this is no longer the case.

        Parameters:
        interpolationDate - interpolation date
        sample - time stamped sample (chronologically sorted)
    • Method Detail

      • getInterpolationDate

        public FieldAbsoluteDate<KK> getInterpolationDate()
        Get interpolation date.
        Returns:
        interpolation date
      • getNeighborList

        public List<T> getNeighborList()
        Get neighbor list.
        Returns:
        neighbor list
      • getField

        public Field<KK> getField()
        Get field.
        Returns:
        field
      • getZero

        public KK getZero()
        Get zero.
        Returns:
        zero
      • getOne

        public KK getOne()
        Get one.
        Returns:
        one