**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 **FloatLeastSquares**
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 **DoubleLeastSquares**
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 **FloatComplexLeastSquares**
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 **DoubleComplexLeastSquares**
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**—**FloatNonnegativeLeastSquares**
and **DoubleNonnegativeLeastSquares**.