コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:DriverTracker.Domain.PickupPrediction"/> class.
 /// </summary>
 /// <param name="locationClustering">Location clustering servive.</param>
 /// <param name="legRepository">Leg repository.</param>
 /// <param name="logisticRegressionAnalysis">Object that can perform logistic regression analysis.</param>
 public PickupPrediction(ILocationClustering locationClustering, ILegRepository legRepository,
                         IGeocodingDbSync geocodingDbSync,
                         ISupervisedLearning <LogisticRegression, double[], double> logisticRegressionAnalysis)
 {
     _locationClustering         = locationClustering;
     _legRepository              = legRepository;
     _geocodingDbSync            = geocodingDbSync;
     _logisticRegressionAnalysis = logisticRegressionAnalysis;
 }
コード例 #2
0
 public AnalysisApiController(IDriverRepository driverRepository,
                              ILegRepository legRepository,
                              ILocationClustering locationClustering,
                              IPickupPrediction pickupPrediction,
                              UserManager <IdentityUser> userManager,
                              MvcDriverContext context
                              )
 {
     _driverRepository   = driverRepository;
     _legRepository      = legRepository;
     _locationClustering = locationClustering;
     _pickupPrediction   = pickupPrediction;
     _driverStatistics   = new DriverStatistics(driverRepository, legRepository);
     _userManager        = userManager;
     _context            = context;
 }