Package jline.lib.perm
Class QueueingNetworkKt
-
- All Implemented Interfaces:
public final class QueueingNetworkKt
-
-
Method Summary
Modifier and Type Method Description final static Pair<Matrix, Double>preprocessingDS(Matrix M)Utility function to make a matrix doubly stochastic. -
-
Method Detail
-
preprocessingDS
final static Pair<Matrix, Double> preprocessingDS(Matrix M)
Utility function to make a matrix doubly stochastic.
Uses the Sinkhorn algorithm to iteratively normalize rows and columns until the matrix becomes approximately doubly stochastic.
- Parameters:
M- The input matrix- Returns:
Pair of (doubly stochastic matrix, rescaling factor)
-
-
-
-