public LaplaceDistribution([Real] double location, [Positive] double scale) { if (scale <= 0) throw new ArgumentOutOfRangeException("scale", "Scale must be non-negative."); this.u = location; this.b = scale; this.constant = 1.0 / (2.0 * b); }