/// <summary> /// The integral of the product between this discrete and that discrete. This /// is the probability that samples from this instance and that instance are equal /// </summary> /// <param name="that">That discrete distribution</param> /// <returns>The inner product</returns> public double ProbEqual(Discrete that) { if (IsPointMass) { return(that.Evaluate(Point)); } else if (that.IsPointMass) { return(Evaluate(that.Point)); } else { return(prob.Inner(that.prob)); } }