public double value(double x) {
		if (Double.isNaN(this.Demand.density(x))) System.out.println(
				"NaN Density at "+x+" of "+Demand+" with mean "+Demand.getNumericalMean()+
				" and sd "+Math.sqrt(Demand.getNumericalVariance()));
		return (this.y-x)*this.Demand.density(x);
	}