示例#1
0
 public static void GenerateHopfield(string path)
 {
     var directoryInfo = new DirectoryInfo(path);
     foreach (var directory in directoryInfo.EnumerateDirectories())
     {
         foreach (var file in directory.EnumerateFiles("*.bmp"))
         {
             var randomizer = new BinaryRandimizer.Core.BinaryRandomizer(file.FullName);
             randomizer.ApplyRandomization();
         }
     }
 }
示例#2
0
        public static void GenerateHopfield(string path)
        {
            var directoryInfo = new DirectoryInfo(path);

            foreach (var directory in directoryInfo.EnumerateDirectories())
            {
                foreach (var file in directory.EnumerateFiles("*.bmp"))
                {
                    var randomizer = new BinaryRandimizer.Core.BinaryRandomizer(file.FullName);
                    randomizer.ApplyRandomization();
                }
            }
        }
示例#3
0
 public static void Main(string[] args)
 {
   var directoryInfo = new DirectoryInfo(Environment.CurrentDirectory).Parent.Parent.Parent;
   var path = Path.Combine(directoryInfo.FullName, Program.DataDirectoryName);
   directoryInfo = new DirectoryInfo(path);
   foreach (var directory in directoryInfo.EnumerateDirectories())
   {
     foreach (var file in directory.EnumerateFiles("*.bmp"))
     {
       var randomizer = new BinaryRandimizer.Core.BinaryRandomizer(file.FullName);
       randomizer.ApplyRandomization();
     }
   }
 }