@DRNadler wrote:
I tried to fit a simple polynomial:
polyFit = MathNet.Numerics.Fit.Polynomial(xSlope, yExpectedPRgap, 3);
Input arrays are both double[3] and do work with a line fit as in:
Tuple PRcoeffs = MathNet.Numerics.Fit.Line(xSlope, yExpectedPRgap);Fit.Polynomial throws the exception below; what am I missing?
Thanks!
Best Regards, Dave"Matrix dimensions must agree: 3x4." "Matrix dimensions must agree: 3x4." string StackTrace " at MathNet.Numerics.LinearAlgebra.Double.Factorization.DenseQR.Create(DenseMatrix matrix, QRMethod method)
at MathNet.Numerics.LinearAlgebra.Double.DenseMatrix.QR(QRMethod method)
at MathNet.Numerics.LinearRegression.MultipleRegression.QR[T](Matrix1 x, Vector
1 y)
at MathNet.Numerics.LinearRegression.MultipleRegression.DirectMethod[T](Matrix1 x, Vector
1 y, DirectRegressionMethod method)
at MathNet.Numerics.Fit.Polynomial(Double[] x, Double[] y, Int32 order, DirectRegressionMethod ..." string
Posts: 6
Participants: 2