public DataCalculations(FlightDataParser parser) { this.parser = parser; nameDataZeroA = ""; nameDataZeroB = ""; initNewDic(); }
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); }
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(); }