예제 #1
0
파일: Window.cs 프로젝트: olgatei/Di4
        public Interval GetInterval(int count)
        {
            var ibase = new IntervalBase();

            ibase.left  = _ErlangDistribution.NextErlang(_left, _right - 2);
            ibase.right = _ErlangDistribution.NextErlang(ibase.left + 1, Math.Min(ibase.left + 1 + _maxIntervalLength, _right));
            return(new Interval(_chr, ibase, GetRandomName(count), Math.Round(_random.NextDouble(), 5)));
        }
예제 #2
0
 public Interval(string chr, IntervalBase interval, string name, double value) : base(interval)
 {
     this.chr   = chr;
     this.name  = name;
     this.value = value;
 }