Updates the given chart with the specified fitted polynomial.

Namespace:  CenterSpace.NMath.Charting.Microsoft
Assembly:  NMathChartMicrosoft (in NMathChartMicrosoft.dll) Version: 5.1.0.0

Syntax

C#
public static void Update(
	ref Chart chart,
	PolynomialLeastSquares pls,
	DoubleVector x,
	DoubleVector y,
	int numInterpolatedValues
)
Visual Basic (Declaration)
Public Shared Sub Update ( _
	ByRef chart As Chart, _
	pls As PolynomialLeastSquares, _
	x As DoubleVector, _
	y As DoubleVector, _
	numInterpolatedValues As Integer _
)
Visual C++
public:
static void Update(
	Chart^% chart, 
	PolynomialLeastSquares^ pls, 
	DoubleVector^ x, 
	DoubleVector^ y, 
	int numInterpolatedValues
)

Parameters

chart
Type: Chart %
A chart.
pls
Type: CenterSpace.NMath.Analysis..::.PolynomialLeastSquares
A PolynomialLeastSquares object containing a least squares fit of a polynomial to the data.
x
Type: CenterSpace.NMath.Core..::.DoubleVector
The fitted x values.
y
Type: CenterSpace.NMath.Core..::.DoubleVector
The fitted y values.
numInterpolatedValues
Type: System..::.Int32
The number of interpolated values.

Remarks

A new, default ChartArea is added if one does not exist, otherwise chart.ChartAreas[0] is used. Axis titles, and DefaultAxisTitleFont and DefaultMajorGridLineColor, only have an effect if a new ChartArea is added.
Titles are added only if chart does not currently contain any titles.
The first two data series are replaced, or added if necessary.

See Also