Updates the given chart with the specified fitted function.

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

Syntax

C#
public static void Update<M>(
	ref Chart chart,
	OneVariableFunctionFitter<M> ovf,
	DoubleVector x,
	DoubleVector y,
	DoubleVector solution,
	int numInterpolatedValues
)
where M : new(), INonlinearLeastSqMinimizer
Visual Basic (Declaration)
Public Shared Sub Update(Of M As {New, INonlinearLeastSqMinimizer}) ( _
	ByRef chart As Chart, _
	ovf As OneVariableFunctionFitter(Of M), _
	x As DoubleVector, _
	y As DoubleVector, _
	solution As DoubleVector, _
	numInterpolatedValues As Integer _
)
Visual C++
public:
generic<typename M>
where M : gcnew(), INonlinearLeastSqMinimizer
static void Update(
	Chart^% chart, 
	OneVariableFunctionFitter<M>^ ovf, 
	DoubleVector^ x, 
	DoubleVector^ y, 
	DoubleVector^ solution, 
	int numInterpolatedValues
)

Parameters

chart
Type: Chart %
A chart.
ovf
Type: CenterSpace.NMath.Analysis..::.OneVariableFunctionFitter<(Of <(M>)>)
A OneVariableFunctionFitter object containing a least squares fit of a parameterized function to the given x,y values.
x
Type: CenterSpace.NMath.Core..::.DoubleVector
The fitted x values.
y
Type: CenterSpace.NMath.Core..::.DoubleVector
The fitted y values.
solution
Type: CenterSpace.NMath.Core..::.DoubleVector
>The parameters of the function at the found minimum.
numInterpolatedValues
Type: System..::.Int32
The number of interpolated values.

Type Parameters

M

[Missing <typeparam name="M"/> documentation for "M:CenterSpace.NMath.Charting.Microsoft.NMathChart.Update``1(System.Windows.Forms.DataVisualization.Charting.Chart@,CenterSpace.NMath.Analysis.OneVariableFunctionFitter{``0},CenterSpace.NMath.Core.DoubleVector,CenterSpace.NMath.Core.DoubleVector,CenterSpace.NMath.Core.DoubleVector,System.Int32)"]

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