Class FieldFixedNumberInterpolationGrid<T extends CalculusFieldElement<T>>

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

    public class FieldFixedNumberInterpolationGrid<T extends CalculusFieldElement<T>>
    extends Object
    implements FieldInterpolationGrid<T>
    Interpolation grid where a fixed number of points are evenly spaced between the start and the end of the integration step.

    The grid is adapted to the step considered, meaning that for short steps, the grid will be dense, while for long steps the points will be far away one from each other

    • Constructor Detail

      • FieldFixedNumberInterpolationGrid

        public FieldFixedNumberInterpolationGrid​(Field<T> field,
                                                 int pointsPerStep)
        Constructor.
        Parameters:
        field - field used by default
        pointsPerStep - number of points in the grid per step
    • 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