function,
parameters,
ArrayConverter.asDoubleArray(yDataPoints),
ArrayConverter.asDoubleArray(xDataPoints),
function.constructWeights(ArrayConverter.combineMultiDimDataPoints(yDataPoints, xDataPoints)),
new JAMAMatrix(parameters.length, parameters.length)
);
}