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))); }
public Interval(string chr, IntervalBase interval, string name, double value) : base(interval) { this.chr = chr; this.name = name; this.value = value; }