public int generateX(int i, int j) {
		double mu = 0.0;
		mu += _parameters.visibleBias(j);
		for (int jj = 0; jj < _parameters.numHiddenNodes(); jj++) {
			 mu += _parameters.weight(j, jj) * generatedHiddens[i][jj];
		}
		mu = MathUtilities.sigmoid(mu);
		if (random.nextDouble() >= 1 - mu) {
			return 1;
		}
		else {
			return 0;
		}
	};