DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


Declaration: MatrixMultScalar (InMat: TDouble2DArray; Wgt, Offs: double; var TargetMat: TDouble2DArray);
The procedure MatrixMultScalar multiplies all elements of the matrix InMat by the parameter Wgt and adds the value Offs. The results are stored in the matrix TargetMat. The matrix elements are transformed according to the following equation:

TargetMat[] := InMat[] * Wgt + Offs