Class NonLinearLeastSquareResults
The results of a non-linear least-squares fit, QuantLib's NonLinearLeastSquare inspectors.
public sealed record NonLinearLeastSquareResults : IEquatable<NonLinearLeastSquareResults>
- Inheritance
-
NonLinearLeastSquareResults
- Implements
- Inherited Members
Constructors
NonLinearLeastSquareResults(ImmutableArray<double>, double, double, EndCriteriaType)
The results of a non-linear least-squares fit, QuantLib's NonLinearLeastSquare inspectors.
public NonLinearLeastSquareResults(ImmutableArray<double> Results, double ResidualNorm, double LastValue, EndCriteriaType ExitFlag)
Parameters
ResultsImmutableArray<double>The point found.
ResidualNormdoubleThe cost there, the square of the residuals' norm.
LastValuedoubleThe cost there, QuantLib's
lastValue().ExitFlagEndCriteriaTypeThe end criterion the minimization met.
Properties
ExitFlag
The end criterion the minimization met.
public EndCriteriaType ExitFlag { get; init; }
Property Value
LastValue
The cost there, QuantLib's lastValue().
public double LastValue { get; init; }
Property Value
ResidualNorm
The cost there, the square of the residuals' norm.
public double ResidualNorm { get; init; }
Property Value
Results
The point found.
public ImmutableArray<double> Results { get; init; }
Property Value
Methods
Deconstruct(out ImmutableArray<double>, out double, out double, out EndCriteriaType)
public void Deconstruct(out ImmutableArray<double> Results, out double ResidualNorm, out double LastValue, out EndCriteriaType ExitFlag)
Parameters
ResultsImmutableArray<double>ResidualNormdoubleLastValuedoubleExitFlagEndCriteriaType
Equals(NonLinearLeastSquareResults?)
public bool Equals(NonLinearLeastSquareResults? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(NonLinearLeastSquareResults?, NonLinearLeastSquareResults?)
public static bool operator ==(NonLinearLeastSquareResults? left, NonLinearLeastSquareResults? right)
Parameters
Returns
operator !=(NonLinearLeastSquareResults?, NonLinearLeastSquareResults?)
public static bool operator !=(NonLinearLeastSquareResults? left, NonLinearLeastSquareResults? right)