Changeset 1861


Ignore:
Timestamp:
Aug 23, 2010, 5:42:44 PM (11 years ago)
Author:
malischewski
Message:

modified for testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/CostFunction/CostFunction.cs

    r1858 r1861  
    9191            this.settings.changeFunctionType(type);
    9292        }
     93
     94        public void setDataPath(string path)
     95        {
     96            this.testing = true;
     97            this.settings.customFilePath = path;
     98        }
    9399        #endregion
    94100
     
    479485        private double[] xlogx;
    480486        private Mutex prepareMutex = new Mutex();
     487        private bool testing = false;
    481488
    482489        private void prepareEntropy(int size)
     
    609616           
    610617            txtList = dataMgr.LoadDirectory(DATATYPE);
    611            
     618            if (testing) { return calculateAbsolutes(this.settings.customFilePath, length); }
    612619            switch (this.settings.StatisticsCorpus)
    613620            {
Note: See TracChangeset for help on using the changeset viewer.