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