public MainWindow()
        { // init the controller before the gui statrs
            int cache_size = 100 * 1000;
            int heap_size = 50;
            ctrl = new Controller(cache_size, heap_size);
            
            InitializeComponent();
            srch = new Searcher();

        }
示例#2
0
 public Ranker(Controller ctrl, Dictionary<string, Dictionary<string, int>> tf_all_doc,
     List<string> ExistingTerm, int num_terms_in_query, 
     Dictionary<string, Tuple<int, int, string, int>> num_of_terms_in_doc,
     Dictionary<string, List<TermInDoc>> myTerms)
 {
     _ctrl = ctrl;
     _tf_all_docs = tf_all_doc;
     ranked_docs = new Dictionary<string, double>();
     _ExistingTerms = ExistingTerm;
     _num_terms_in_query = num_terms_in_query;
     _num_of_terms_in_doc = num_of_terms_in_doc;
     _N = _tf_all_docs.Count;
     _myTerms = myTerms;
 }
 public show_memory(Controller ctrl)
 {
     _ctrl = ctrl;
     InitializeComponent();
 }