Ejemplo n.º 1
0
 internal PeriodicSpline(double[] xs, double[] ys, int resolution = 0xA) : base(xs, ys, resolution)
 {
     M     = new Matrix(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();
 }
Ejemplo n.º 2
0
 internal EndSlopeSpline(double[] xs, double[] ys, int resolution = 0xA, double firstSlopeDegrees = 0, double lastSlopeDegrees = 0) : base(xs, ys, resolution)
 {
     M     = new Matrix(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);
 }
Ejemplo n.º 3
0
 internal NaturalSpline(double[] xs, double[] ys, int resolution = 0xA) : base(xs, ys, resolution)
 {
     M     = new Matrix(n - 2);
     Gauss = new MatrixSolver(n - 2, M);
     A     = new double[n];
     B     = new double[n];
     C     = new double[n];
     D     = new double[n];
     H     = new double[n - 1];
     CalcParameters();
 }