예제 #1
0
 private static SuggestionEngine.SuggestionEngine CreateSuggestionEngine()
 {
     var repo = new CouchRepository();
     var linear = new LinearCovarianceCalculator();
     var twoToOne = new TwoToOneCovarianceCalculator();
     return new SuggestionEngine.SuggestionEngine(linear, twoToOne, repo);
 }
예제 #2
0
 public SuggestionEngine(LinearCovarianceCalculator linearCovarianceCalculator, TwoToOneCovarianceCalculator twoToOneCovarianceCalculator, CouchRepository couchRepository)
 {
     _couchRepository = couchRepository;
     _linearCovarianceCalculator = linearCovarianceCalculator;
     _twoToOneCovarianceCalculator = twoToOneCovarianceCalculator;
 }