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(); }
public CubicSpline(AbstractGraphRow row) { this.size = row.size(); this.x = new double[size]; this.y = new double[size]; this.d2ydx2 = new double[size]; init(row); }
CubicSpline cs = new CubicSpline(row); long minX = row.getMinX(); long maxX = row.getMaxX(); int yHeight = (int) ((cs.interpolate(currentX) - minYVal) * dyForDVal); y = chartRect.y + chartRect.height - yHeight;
CubicSpline cs = new CubicSpline(row); long minX = row.getMinX(); long maxX = row.getMaxX(); int yHeight = (int) ((cs.interpolate(currentX) - minYVal) * dyForDVal); y = chartRect.y + chartRect.height - yHeight;
public CubicSpline(AbstractGraphRow row) { this.size = row.size(); this.x = new double[size]; this.y = new double[size]; this.d2ydx2 = new double[size]; 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(); }