コード例 #1
0
 public NormalIntervalPolynomialCurveElement(DoubleExtension val, DataInterval interval)
 {
     this.degree = 1;
     this.coefficients = new List<DoubleExtension>();
     this.coefficients.Add(val);
     this.interval = interval;
     if (val.EqualsToZero)
         this.equalsToZero = true;
 }
コード例 #2
0
 public NormalIntervalPolynomialCurveElement(List<DoubleExtension> coefficients, int degree, DataInterval interval)
 {
     if (degree >= 0)
     {
         this.degree = degree;
         this.coefficients = new List<DoubleExtension>();
         for (int i = 0; i < degree; i++ )
             this.coefficients.Add(coefficients[i]);
     }
     if (this.coefficients.Count == 1 && this.coefficients[0].EqualsToZero)
         equalsToZero = true;
     this.interval = interval;
 }
コード例 #3
0
 public NormalIntervalPolynomialCurveElement(List<DoubleExtension> coefficients, DataInterval interval)
     : this(coefficients, coefficients.Count, interval)
 {
     
 }