in src/main/java/com/twitter/sbf/core/MHAlgorithm.java [80:95]
public MHAlgorithm(AlgorithmConfig config,
Graph g,
SparseBinaryMatrix matrix,
PrintWriter diagnosticsWriter) {
this.g = g;
this.config = config;
this.initMatrix = matrix;
this.diagnosticsWriter = diagnosticsWriter;
gumbel = new GumbelDistribution(config.rng, 0, 1);
if (config.updateImmediately && !config.noLocking) {
colLocks = new ReentrantLock[config.k];
for (int i = 0; i < colLocks.length; i++) {
colLocks[i] = new ReentrantLock();
}
}
}