Updates the given chart with the specified least squares model.
Namespace:
CenterSpace.NMath.Charting.MicrosoftAssembly: NMathChartMicrosoft (in NMathChartMicrosoft.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public static void Update( ref Chart chart, DoubleComplexLeastSquares lsq, DoubleComplexVector y ) |
| Visual Basic (Declaration) |
|---|
Public Shared Sub Update ( _ ByRef chart As Chart, _ lsq As DoubleComplexLeastSquares, _ y As DoubleComplexVector _ ) |
| Visual C++ |
|---|
public: static void Update( Chart^% chart, DoubleComplexLeastSquares^ lsq, DoubleComplexVector^ y ) |
Parameters
- chart
- Type:
Chart
%
A chart.
- lsq
- Type: CenterSpace.NMath.Core..::.DoubleComplexLeastSquares
Least squares object.
- y
- Type: CenterSpace.NMath.Core..::.DoubleComplexVector
The right-hand side of the linear system.
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.
Titles are added only if chart does not currently contain any titles.
The first two data series are replaced, or added if necessary.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.MismatchedSizeException | Thrown if the length of y does not equal the length of lsq.YHat. |