示例#1
0
        public double NextValue()
        {
            double result;

            if (next == null)
            {
                var uinD  = uin.NextValue();
                var weibD = weib.NextValue();
                next   = weibD * Math.Cos(uinD);
                result = weibD * Math.Sin(uinD);
            }
            else
            {
                result = next.Value;
                next   = null;
            }
            return(result);
        }
示例#2
0
 public double NextValue()
 {
     return(Math.Pow(-Math.Log(1 - dist.NextValue()) / lambda, 1 / alpha));
 }