Exemple #1
0
 public DataCalculations(FlightDataParser parser)
 {
     this.parser   = parser;
     nameDataZeroA = "";
     nameDataZeroB = "";
     initNewDic();
 }
Exemple #2
0
 public void loadCSV(string csv, string[] names)
 {
     this.csv_file = csv;
     Names         = names;
     NotifyPropertyChanged("Names");
     parser = new FlightDataParser(csv, names);
     media.numberOfLines    = parser.GetNumberOfLines();
     media.PropertyChanged += play;
     dc = new DataCalculations(parser);
 }
Exemple #3
0
        public DLLDataParser(string normal, string anomaly)
        {
            pairs            = new Dictionary <string, PairData>();
            detector         = new AnomalyDetector();
            flightController = FlightController.GetInstance;
            flight_parser    = flightController.getParser;

            //learn and detect
            detector.LearnNormal(string.Join(",", flightController.Names), normal);
            detector.Detect(string.Join(",", flightController.Names), anomaly);

            //parse data
            Parse();
            detector.UnloadDlls();
        }