public CoreHelper(PatternManager manager)
        {
            patternManager = manager;

            for (int i = 0; i < patternManager.GetNuberOfPatterns(); i++)
            {
                totalFrequency += patternManager.GetPatternFrequency(i);
            }
            totalFrequencyLog = Mathf.Log(totalFrequency, 2);
        }
 public WFCCore(int outputWidth, int outputHeight, int maxIterations, PatternManager patternManage)
 {
     this.outputGrid     = new OutputGrid(outputWidth, outputHeight, patternManage.GetNuberOfPatterns());
     this.patternManager = patternManage;
     this.maxIterations  = maxIterations;
 }