Constructor for Dissimilarities
.
double
matrix containing the data input matrix. int
identifying the method to use in computing the dissimilarities or similarities. int
containing the scaling option. int
identifying whether distances are computed between rows or columns of x. int
array containing the indices of the rows (columns if iRow is 1) to use in computing the distance measure. Acceptable values of distanceMethod are 1, 2, ..., 8. See Remarks section of the Dissimilarities
documentation for a description of these methods.
distanceScale | Method |
---|---|
0 | No scaling is performed. |
1 | Scale each column (row if iRow=1) by the standard deviation of the column(row). |
2 | Scale each column (row if iRow=1) by the range of the column (row). |
Exception Type | Condition |
---|---|
ScaleFactorZeroException | is thrown when computations cannot continue because a scale factor is zero. |
NoPositiveVarianceException | is thrown when no variable has positive variance |
ZeroNormException | is thrown when the Euclidean norm of a column is equal to zero |
Dissimilarities Class | Imsl.Stat Namespace | Dissimilarities Constructor Overload List