Class AbstractGrid

java.lang.Object
net.finmath.finitedifference.grids.AbstractGrid
All Implemented Interfaces:
Grid
Direct Known Subclasses:
ExponentialGrid, GaussianGrid, GridWithMandatoryPoint, HyperbolicSineGrid, UniformGrid

public abstract class AbstractGrid extends Object implements Grid
Abstract base class for implementations of Grid.

Provides a default implementation of getInteriorGrid(), returning the grid without the first and last points.

Author:
Alessandro Gnoatto
  • Constructor Details

    • AbstractGrid

      public AbstractGrid()
  • Method Details

    • getInteriorGrid

      public double[] getInteriorGrid()
      Returns the interior grid, excluding the first and the last entry.
      Specified by:
      getInteriorGrid in interface Grid
      Returns:
      An array containing the interior grid points.