/** * Returns the z-value at the specified sample position in the dataset. * In this implementation, where the underlying values are stored in an * array of double primitives, you should avoid using this method and * use {@link #getZValue(int, int)} instead. * * @param xIndex the position of the x sample in the dataset. * @param yIndex the position of the y sample in the dataset. * * @return The z-value. */ public Number getZ(int xIndex, int yIndex) { return new Double(getZValue(xIndex, yIndex)); }
/** * Returns the z-value at the specified sample position in the dataset. * In this implementation, where the underlying values are stored in an * array of double primitives, you should avoid using this method and * use {@link #getZValue(int, int)} instead. * * @param xIndex the position of the x sample in the dataset. * @param yIndex the position of the y sample in the dataset. * * @return The z-value. */ @Override public Number getZ(int xIndex, int yIndex) { return new Double(getZValue(xIndex, yIndex)); }