public LatinHypercubeSampling(IRandomNumberGeneratorFactory rng, TSysConfig template, int nDiv = 5)
 {
     this.rng  = rng;
     this.rand = rng.CreateRandom();
     if (!template.SupportsThreadSafeCloning)
     {
         throw new ArgumentException("This URS factory requires cloneable and thread-safe system configurations");
     }
     this.template = template;
     this.hcOps    = new HyperCubeOperations(rng.CreateFactory());
     this.nDiv     = nDiv;
 }
Пример #2
0
 public IHyperCubeOperations CreateNew(IRandomNumberGeneratorFactory rng)
 {
     return(new HyperCubeOperations(rng.CreateFactory()));
 }
Пример #3
0
 private IHyperCubeOperations CreateIHyperCubeOperations( )
 {
     return(new HyperCubeOperations(rng.CreateFactory( )));
 }