回复 3楼iceman的帖子
您好示例中有个方法
public static XYDataSeries CreateDataSeries(double xmin, double xmax, int npts, Func<double, double> func, string label)
{
double[] x = new double[npts];
double[] y = new double[npts];
for (int i = 0; i < npts; i++)
{
x = xmin + (xmax - xmin) * i / (npts - 1);
y = func(x);
}
return new XYDataSeries() { ValuesSource = y, XValuesSource = x, Label = label };
}
这个方法的 第三个参数int npts是什么意思? |