Class AbstractGridDataSet<U>

    • Constructor Detail

      • AbstractGridDataSet

        public AbstractGridDataSet​(java.lang.String name,
                                   int dimension)
        default constructor
        Parameters:
        name - the default name of the data set (meta data)
        dimension - dimension of this data set
    • Method Detail

      • getGridIndex

        public int getGridIndex​(int dimIndex,
                                double x)
        Specified by:
        getGridIndex in interface GridDataSet
        Parameters:
        dimIndex - Dimension index, smaller than getShape().size
        x - value along the specified axis to get the next index for
        Returns:
        index which corresponds to the given value
      • getValue

        public double getValue​(int dimIndex,
                               double... x)
        Description copied from interface: DataSet
        Returns the value along the 'dimIndex' axis of a point specified by the x coordinate.
        Specified by:
        getValue in interface DataSet
        Overrides:
        getValue in class AbstractDataSet<AbstractGridDataSet<U>>
        Parameters:
        dimIndex - the dimension index (ie. '0' equals 'X', '1' equals 'Y')
        x - horizontal 'dimIndex' coordinate
        Returns:
        'dimIndex' value