public PeriodicSpline(double[] xs, double[] ys, int resolution = 10) : base(xs, ys, resolution) { m = new PlottMatrix(n - 1); gauss = new MatrixSolver(n - 1, m); a = new double[n + 1]; b = new double[n + 1]; c = new double[n + 1]; d = new double[n + 1]; h = new double[n]; CalcParameters(); Integrate(); Interpolate(); }
public EndSlopeSpline(double[] xs, double[] ys, int resolution = 10, double firstSlopeDegrees = 0, double lastSlopeDegrees = 0) : base(xs, ys, resolution) { m = new PlottMatrix(n); gauss = new MatrixSolver(n, m); a = new double[n]; b = new double[n]; c = new double[n]; d = new double[n]; h = new double[n]; CalcParameters(firstSlopeDegrees, lastSlopeDegrees); Integrate(); Interpolate(); }
public MatrixSolver(int size, PlottMatrix mi) { maxOrder = size; m = mi; }