Returns a new line chart comparing the specified right-hand side with that predicted by the given model.

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

Syntax

C#
public static Chart ToChart(
	DoubleComplexLeastSquares lsq,
	DoubleComplexVector y,
	NMathChart..::.Unit xUnits
)
Visual Basic (Declaration)
Public Shared Function ToChart ( _
	lsq As DoubleComplexLeastSquares, _
	y As DoubleComplexVector, _
	xUnits As NMathChart..::.Unit _
) As Chart
Visual C++
public:
static Chart^ ToChart(
	DoubleComplexLeastSquares^ lsq, 
	DoubleComplexVector^ y, 
	NMathChart..::.Unit^ xUnits
)

Parameters

lsq
Type: CenterSpace.NMath.Core..::.DoubleComplexLeastSquares
Least squares object.
y
Type: CenterSpace.NMath.Core..::.DoubleComplexVector
The right-hand side of the linear system.
xUnits
Type: CenterSpace.NMath.Charting.Microsoft..::.NMathChart..::.Unit
The units for the x-axis.

Return Value

A new chart.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.MismatchedSizeException Thrown if the length of y does not equal the length of lsq.YHat.

See Also