private void UpdateCoefficients(ICurvePointList pointList)
 {
     for (int i = 0; i < degree; i++)
     {
         fullCoefficents.SetArrayElement(0, i, pointList[i].Y);
     }
     for (int i = 1; i < degree; i++)
         for (int j = 0; j < degree - i; j++)
             fullCoefficents.SetArrayElement(i, j, new DoubleExtension((fullCoefficents.GetArrayElement(i - 1, j + 1).AccurateValue - fullCoefficents.GetArrayElement(i - 1, 0).AccurateValue) / (pointList[i + j].X.AccurateValue - pointList[i - 1].X.AccurateValue)));
 }
示例#2
0
 public static PointPairList TransformDataPointListToPointPairList(ICurvePointList points)
 {
     PointPairList list = new PointPairList();
     foreach (Util.Variable.DataPoint item in points)
     {
         list.Add(TransformDataPointToPointPair(item));
     }
     return list;
 }