示例#1
0
        private static PiecewiseConstantDistribution MonotonicTestDistribution()
        {
            var boundaries = new[] { 1d, 2d, 3d };
            var weights    = new[] { 1d, 1d };

            return(PiecewiseConstantDistribution.Create(boundaries, weights));
        }
示例#2
0
 private static void ConstructInvalid(IEnumerable <double> domain, IEnumerable <double> weights)
 {
     Assert.Throws <ArgumentException>(
         () => _ = PiecewiseConstantDistribution.Create(domain, weights));
 }