final double[] logY = new double[nData];
for (int i = 0; i < nData; ++i) {
ArgumentChecker.isTrue(y[i] > 0., "y should be positive");
logY[i] = Math.log(y[i]);
}
return new Interpolator1DLogPiecewisePoynomialDataBundle(new ArrayInterpolator1DDataBundle(x, logY, false), new MonotonicityPreservingCubicSplineInterpolator(new LogNaturalSplineHelper()));
}