private void Initialization()
 {
     NumberOfGenerators     = 20;
     NumberOfSamplingPoints = 10000;
     SelectedSamplingMethod = RandomEngine.HALTONSEQUENCE;
     SamplingMethods.Clear();
     foreach (var item in Enum.GetNames(typeof(RandomEngine)))
     {
         SamplingMethods.Add(item);
     }
 }
Beispiel #2
0
        private void DefaultSettings(VoronoiSettings vs)
        {
            if (vs == null)
            {
                return;
            }

            NumberOfGenerators     = vs.NumberOfGenerators;
            NumberOfSamplingPoints = vs.NumberOfSamplingPoints;
            foreach (var item in vs.SamplingMethods)
            {
                SamplingMethods.Add(item);
            }
            SelectedSamplingMethod = vs.SelectedSamplingMethod.ToString();
        }