@Test public void testInit() { System.out.println("init"); AbstractGraphRow row = new GraphRowSumValues(false); row.add(1, 1); row.add(2, 4); row.add(3, 2); CubicSpline instance = new CubicSpline(row); instance.init(row); }
public final void init(AbstractGraphRow row) { Iterator<Entry<Long, AbstractGraphPanelChartElement>> it = row.iterator(); Entry<Long, AbstractGraphPanelChartElement> element; int index = 0; while (it.hasNext() && index < size) { element = it.next(); AbstractGraphPanelChartElement elt = (AbstractGraphPanelChartElement) element.getValue(); x[index] = element.getKey().doubleValue(); y[index] = elt.getValue(); index++; } calcD2ydx2(); }
CubicSpline { public final void init(AbstractGraphRow row) { Iterator<Entry<Long, AbstractGraphPanelChartElement>> it = row.iterator(); Entry<Long, AbstractGraphPanelChartElement> element; int index = 0; while (it.hasNext() && index < size) { element = it.next(); AbstractGraphPanelChartElement elt = (AbstractGraphPanelChartElement) element.getValue(); x[index] = element.getKey().doubleValue(); y[index] = elt.getValue(); index++; } calcD2ydx2(); } }
CubicSpline { public final void init(AbstractGraphRow row) { Iterator<Entry<Long, AbstractGraphPanelChartElement>> it = row.iterator(); Entry<Long, AbstractGraphPanelChartElement> element; int index = 0; while (it.hasNext() && index < size) { element = it.next(); AbstractGraphPanelChartElement elt = (AbstractGraphPanelChartElement) element.getValue(); x[index] = element.getKey().doubleValue(); y[index] = elt.getValue(); index++; } calcD2ydx2(); } CubicSpline(AbstractGraphRow row); }
CubicSpline { public final void init(AbstractGraphRow row) { Iterator<Entry<Long, AbstractGraphPanelChartElement>> it = row.iterator(); Entry<Long, AbstractGraphPanelChartElement> element; int index = 0; while (it.hasNext() && index < size) { element = it.next(); AbstractGraphPanelChartElement elt = (AbstractGraphPanelChartElement) element.getValue(); x[index] = element.getKey().doubleValue(); y[index] = elt.getValue(); index++; } calcD2ydx2(); } CubicSpline(AbstractGraphRow row); final void init(AbstractGraphRow row); double interpolate(double xx); }
CubicSpline { public final void init(AbstractGraphRow row) { Iterator<Entry<Long, AbstractGraphPanelChartElement>> it = row.iterator(); Entry<Long, AbstractGraphPanelChartElement> element; int index = 0; while (it.hasNext() && index < size) { element = it.next(); AbstractGraphPanelChartElement elt = (AbstractGraphPanelChartElement) element.getValue(); x[index] = element.getKey().doubleValue(); y[index] = elt.getValue(); index++; } calcD2ydx2(); } CubicSpline(AbstractGraphRow row); final void init(AbstractGraphRow row); double interpolate(double xx);  }