NodalDoublesCurve extends ArraysDoublesCurve { @Override public Double getYValue(final Double x) { ArgumentChecker.notNull(x, "x"); final int index = Arrays.binarySearch(getXDataAsPrimitive(), x); if (index < 0) { throw new IllegalArgumentException("Curve does not contain data for x point " + x); } return getYDataAsPrimitive()[index]; } protected  NodalDoublesCurve();  NodalDoublesCurve(final double[] xData, final double[] yData, final boolean isSorted);  NodalDoublesCurve(final Double[] xData, final Double[] yData, final boolean isSorted);  NodalDoublesCurve(final Map<Double, Double> data, final boolean isSorted);  NodalDoublesCurve(final DoublesPair[] data, final boolean isSorted);  NodalDoublesCurve(final Set<DoublesPair> data, final boolean isSorted);  NodalDoublesCurve(final List<Double> xData, final List<Double> yData, final boolean isSorted);  NodalDoublesCurve(final List<DoublesPair> data, final boolean isSorted);  NodalDoublesCurve(final double[] xData, final double[] yData, final boolean isSorted, final String name);  NodalDoublesCurve(final Double[] xData, final Double[] yData, final boolean isSorted, final String name);  NodalDoublesCurve(final Map<Double, Double> data, final boolean isSorted, final String name);  NodalDoublesCurve(final DoublesPair[] data, final boolean isSorted, final String name);  NodalDoublesCurve(final Set<DoublesPair> data, final boolean isSorted, final String name);  NodalDoublesCurve(final List<Double> xData, final List<Double> yData, final boolean isSorted, final String name);  NodalDoublesCurve(final List<DoublesPair> data, final boolean isSorted, final String name); static NodalDoublesCurve from(final double[] xData, final double[] yData); static NodalDoublesCurve from(final Double[] xData, final Double[] yData); static NodalDoublesCurve from(final Map<Double, Double> data); static NodalDoublesCurve from(final DoublesPair[] data); static NodalDoublesCurve from(final Set<DoublesPair> data); static NodalDoublesCurve from(final List<Double> xData, final List<Double> yData); static NodalDoublesCurve from(final List<DoublesPair> data); static NodalDoublesCurve from(final double[] xData, final double[] yData, final String name); static NodalDoublesCurve from(final Double[] xData, final Double[] yData, final String name); static NodalDoublesCurve from(final Map<Double, Double> data, final String name); static NodalDoublesCurve from(final DoublesPair[] data, final String name); static NodalDoublesCurve from(final Set<DoublesPair> data, final String name); static NodalDoublesCurve from(final List<Double> xData, final List<Double> yData, final String name); static NodalDoublesCurve from(final List<DoublesPair> data, final String name); static NodalDoublesCurve fromSorted(final double[] xData, final double[] yData); static NodalDoublesCurve fromSorted(final Double[] xData, final Double[] yData); static NodalDoublesCurve fromSorted(final Map<Double, Double> data); static NodalDoublesCurve fromSorted(final DoublesPair[] data); static NodalDoublesCurve fromSorted(final Set<DoublesPair> data); static NodalDoublesCurve fromSorted(final List<DoublesPair> data); static NodalDoublesCurve fromSorted(final List<Double> xData, final List<Double> yData); static NodalDoublesCurve fromSorted(final double[] xData, final double[] yData, final String name); static NodalDoublesCurve fromSorted(final Double[] xData, final Double[] yData, final String name); static NodalDoublesCurve fromSorted(final Map<Double, Double> data, final String name); static NodalDoublesCurve fromSorted(final DoublesPair[] data, final String name); static NodalDoublesCurve fromSorted(final Set<DoublesPair> data, final String name); static NodalDoublesCurve fromSorted(final List<Double> xData, final List<Double> yData, final String name); static NodalDoublesCurve fromSorted(final List<DoublesPair> data, final String name); @Override Double getYValue(final Double x); @Override Double[] getYValueParameterSensitivity(Double x); @Override double getDyDx(double x); static NodalDoublesCurve.Meta meta(); @Override NodalDoublesCurve.Meta metaBean(); @Override NodalDoublesCurve clone(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }
@Test public void testGetYValue() { final NodalDoublesCurve curve = NodalDoublesCurve.from(PAIR_ARRAY, NAME1); for (int i = 0; i < 10; i++) { assertEquals(curve.getYValue(X_PRIMITIVE[i]), Y_PRIMITIVE[i], 0); } }