# NMath User's Guide

8.1 Class Names (.NET, C#, CSharp, VB, Visual Basic, F#)

The classes that compute general least squares solutions in NMath are named <Type>LeastSquares, where <Type> is Float, Double, FloatComplex, or DoubleComplex. (See Chapter 3 for a description of the complex number classes.) Thus:

The class computes the least squares solution to the linear system Ax = y, where A is a FloatMatrix of independent observations, and y is a FloatVector of corresponding values for the dependent variable.

The class computes the least squares solution to the linear system Ax = y, where A is a DoubleMatrix of independent observations, and y is a DoubleVector of corresponding values for the dependent variable.

The class computes the least squares solution to the linear system Ax = y, where A is a FloatComplexMatrix of independent observations, and y is a FloatComplexVector of corresponding values for the dependent variable.

The class computes the least squares solution to the linear system Ax = y, where A is a DoubleComplexMatrix of independent observations, and y is a DoubleComplexVector of corresponding values for the dependent variable.

The classes that compute nonnegative least squares solutions in NMath are named <Type>NonnegativeLeastSquares, where <Type> is Float or Double and .

Top

Top