public Assignment(Vector<Variable> variables, double prob) {
		//make sure the probability is legal
		assert prob <= 1.0 && prob >= 0.0;
		
		//make the array
		assignment = new boolean[variables.size()];
		//fill the array
		for(int i = 1; i < variables.size(); i++) {
			//assume assignments are true unless explicitly set to false
			assignment[i] = ! (variables.get(i).getAssignment() == Variable.FALSE);
		}

		//store the probability.
		probability = prob;
	}