public FuncAnonymousInnerClass(BasisFunctionGenerator outerInstance, double[] knots, int index) { this.outerInstance = outerInstance; this.knots = knots; this.index = index; _l = knots[index]; _h = knots[index + 1]; }
public FuncAnonymousInnerClass2(BasisFunctionGenerator outerInstance, double[] knots, int index) { this.outerInstance = outerInstance; this.knots = knots; this.index = index; _l = knots[index]; _m = knots[index + 1]; _h = knots[index + 2]; _inv1 = 1.0 / (knots[index + 1] - knots[index]); _inv2 = 1.0 / (knots[index + 2] - knots[index + 1]); }
public FuncAnonymousInnerClass3(BasisFunctionGenerator outerInstance, double[] knots, int degree, int index, System.Func <double, double> fa, System.Func <double, double> fb) { this.outerInstance = outerInstance; this.knots = knots; this.degree = degree; this.index = index; this.fa = fa; this.fb = fb; _inv1 = 1.0 / (knots[index + degree] - knots[index]); _inv2 = 1.0 / (knots[index + degree + 1] - knots[index + 1]); _xa = knots[index]; _xb = knots[index + degree + 1]; }