cgb1.set(0.2f, 1, 0);
RBMLayerCalculator lc = (RBMLayerCalculator) rbm.getLayerCalculator();
Matrix visible = new Matrix(new float[] { 1f, 0f, 1f }, 1);
Matrix hidden = new Matrix(2, 1);
lc.calculateHiddenLayer(rbm, visible, hidden);
assertEquals(0.332, hidden.get(0, 0), 0.001);
assertEquals(0.525, hidden.get(1, 0), 0.001);
}