public void RandomNumberGeneratorTest()
        {
            var ss = new UnivariateSliceSampler(0.1, x => -0.5*x*x, 5, 1.0);

            Assert.IsNotNull(ss.RandomSource);
            ss.RandomSource = new Random();
            Assert.IsNotNull(ss.RandomSource);
        }
Exemplo n.º 2
0
        public void RNGTest()
        {
            var ss = new UnivariateSliceSampler(0.1, x => - 0.5 * x * x, 5, 1.0);

            Assert.IsNotNull(ss.RandomSource);
            ss.RandomSource = new System.Random();
            Assert.IsNotNull(ss.RandomSource);
        }
        public void RNGTest()
        {
            var ss = new UnivariateSliceSampler(0.1, x => -0.5 * x * x, 5, 1.0);

            Assert.IsNotNull(ss.RandomSource);
            ss.RandomSource = new System.Random();
            Assert.IsNotNull(ss.RandomSource);
        }
Exemplo n.º 4
0
        public void RandomNumberGeneratorTest()
        {
            var ss = new UnivariateSliceSampler(0.1, x => - 0.5 * x * x, 5, 1.0);

            Assert.IsNotNull(ss.RandomSource);
            ss.RandomSource = new Random(0);
            Assert.IsNotNull(ss.RandomSource);
        }
 public void SampleArrayTest()
 {
     var ss = new UnivariateSliceSampler(0.1, x => -0.5*x*x, 5, 1.0);
     ss.Sample(5);
 }
 public void SampleTest()
 {
     var ss = new UnivariateSliceSampler(0.1, x => -0.5 * x * x, 5, 1.0);
     double sample = ss.Sample();
 }
 public void InvalidScale()
 {
     var ss = new UnivariateSliceSampler(0.1, x => -0.5 * x * x, 5, -1.0);
 }
 public void InvalidBurn()
 {
     var ss = new UnivariateSliceSampler(0.1, x => -0.5 * x * x, -5, 1.0);
 }
 public void ConstructorTest()
 {
     var ss = new UnivariateSliceSampler(0.1, x => -0.5 * x * x, 5, 1.0);
 }
Exemplo n.º 10
0
        public void SampleArrayTest()
        {
            var ss = new UnivariateSliceSampler(0.1, x => - 0.5 * x * x, 5, 1.0);

            ss.Sample(5);
        }
Exemplo n.º 11
0
 public void InvalidBurn()
 {
     var ss = new UnivariateSliceSampler(0.1, x => - 0.5 * x * x, -5, 1.0);
 }
Exemplo n.º 12
0
 public void InvalidScale()
 {
     var ss = new UnivariateSliceSampler(0.1, x => - 0.5 * x * x, 5, -1.0);
 }
Exemplo n.º 13
0
 public void SampleTest()
 {
     var    ss     = new UnivariateSliceSampler(0.1, x => - 0.5 * x * x, 5, 1.0);
     double sample = ss.Sample();
 }
Exemplo n.º 14
0
 public void ConstructorTest()
 {
     var ss = new UnivariateSliceSampler(0.1, x => - 0.5 * x * x, 5, 1.0);
 }