Class FieldMaxGapInterpolationGrid<T extends CalculusFieldElement<T>>

  • Type Parameters:
    T - type of the field elements
    All Implemented Interfaces:
    FieldInterpolationGrid<T>

    public class FieldMaxGapInterpolationGrid<T extends CalculusFieldElement<T>>
    extends Object
    implements FieldInterpolationGrid<T>
    Interpolation grid where points obey a maximum time gap.

    The grid is adapted to the step considered, meaning that for short steps, the grid will have numerous points.

    Since:
    7.1
    Author:
    Luc Maisonobe
    • Constructor Detail

      • FieldMaxGapInterpolationGrid

        public FieldMaxGapInterpolationGrid​(Field<T> field,
                                            T maxGap)
        Constructor.
        Parameters:
        field - field used by default
        maxGap - maximum time gap between interpolation points
    • Method Detail

      • getGridPoints

        public T[] getGridPoints​(T stepStart,
                                 T stepEnd)
        Get grid points that are within the current step.

        The step is defined by its start and its end time.

        Specified by:
        getGridPoints in interface FieldInterpolationGrid<T extends CalculusFieldElement<T>>
        Parameters:
        stepStart - start of the step
        stepEnd - end of the step
        Returns:
        time points between start and end