Example #1
0
 /// <summary>
 /// Sets the mean and variance to match a mixture of two GammaPower distributions.
 /// </summary>
 /// <param name="weight1">The first weight</param>
 /// <param name="dist1">The first distribution</param>
 /// <param name="weight2">The second weight</param>
 /// <param name="dist2">The second distribution</param>
 public void SetToSum(double weight1, GammaPower dist1, double weight2, GammaPower dist2)
 {
     this.Power = dist1.Power;
     SetTo(Gaussian.WeightedSum(this, weight1, dist1, weight2, dist2));
 }
Example #2
0
 /// <summary>
 /// Set this distribution to have the same parameter values as that
 /// </summary>
 /// <param name="that">the source parameters</param>
 public void SetTo(GammaPower that)
 {
     Rate  = that.Rate;
     Shape = that.Shape;
     Power = that.Power;
 }