public static IEnumerable<double> CreatePoints(double a, double b, ILinearInterpolationFunction function)
 {
     return CreatePoints(a, b, function.Points.Select(p => p.X));
 }
Esempio n. 2
0
 public FunctionPlot(ILinearInterpolationFunction function, double a, double b, params IFunctionPlotStyle[] styles)
     : this((IPlotFunction)function, new FunctionPlotSegment[] { new FunctionPlotSegment(FunctionPlotSegment.CreatePoints(a, b, function)) }, styles)
 {
 }