public class IsotonicMDS
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double[][] |
coordinates
The coordinates.
|
double |
stress
The final stress achieved.
|
Constructor and Description |
---|
IsotonicMDS(double stress,
double[][] coordinates)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static IsotonicMDS |
of(double[][] proximity)
Fits Kruskal's non-metric MDS with default k = 2, tolerance = 1E-4 and maxIter = 200.
|
static IsotonicMDS |
of(double[][] proximity,
double[][] init,
double tol,
int maxIter)
Fits Kruskal's non-metric MDS.
|
static IsotonicMDS |
of(double[][] proximity,
int k)
Fits Kruskal's non-metric MDS.
|
static IsotonicMDS |
of(double[][] proximity,
int k,
double tol,
int maxIter)
Fits Kruskal's non-metric MDS.
|
static IsotonicMDS |
of(double[][] proximity,
java.util.Properties prop)
Fits Kruskal's non-metric MDS.
|
public final double stress
public final double[][] coordinates
public IsotonicMDS(double stress, double[][] coordinates)
stress
- the objective function value.coordinates
- the principal coordinatespublic static IsotonicMDS of(double[][] proximity)
proximity
- the nonnegative proximity matrix of dissimilarities. The
diagonal should be zero and all other elements should be positive and symmetric.public static IsotonicMDS of(double[][] proximity, int k)
proximity
- the nonnegative proximity matrix of dissimilarities. The
diagonal should be zero and all other elements should be positive and symmetric.k
- the dimension of the projection.public static IsotonicMDS of(double[][] proximity, java.util.Properties prop)
proximity
- the nonnegative proximity matrix of dissimilarities. The
diagonal should be zero and all other elements should be positive and
symmetric. For pairwise distances matrix, it should be just the plain
distance, not squared.public static IsotonicMDS of(double[][] proximity, int k, double tol, int maxIter)
proximity
- the nonnegative proximity matrix of dissimilarities. The
diagonal should be zero and all other elements should be positive and symmetric.k
- the dimension of the projection.tol
- the tolerance for stopping iterations.maxIter
- maximum number of iterations.public static IsotonicMDS of(double[][] proximity, double[][] init, double tol, int maxIter)
proximity
- the nonnegative proximity matrix of dissimilarities. The
diagonal should be zero and all other elements should be positive and symmetric.init
- the initial projected coordinates, of which the column
size is the projection dimension.tol
- the tolerance for stopping iterations.maxIter
- maximum number of iterations.