public void init() { RawDataProvider = new ExcelDataProvider(); AllDataDataCubeProvider = new RawDataTransformer(); MainDataCubeProvider = new SliceTransformer(); YearDataCubeProvider = new YearVarTransformer(); KMeansDataCubeProvider = new KMeansDataTransformer(); KMeansForYearsProvider = new KMeansDataTransformer(); //read data from excel file RawDataProvider.HasIDColumn = true; RawDataProvider.Load(@"..\..\..\data\data.xls"); AllDataDataCubeProvider.Input = RawDataProvider; InterpolationCols = new List <int>(); InterpolationCols.Add(5); InterpolationCols.Add(11); AllDataDataCubeProvider.CollumnsForInterpolation = InterpolationCols; AllDataDataCubeProvider.UseInterpolation = true; AllDataDataCubeProvider.CommitChanges(); YearDataCubeProvider.Input = AllDataDataCubeProvider; MainDataCubeProvider.Input = AllDataDataCubeProvider; KMeansDataCubeProvider.Input = MainDataCubeProvider; KMeansForYearsProvider.Input = YearDataCubeProvider; // event listeners _mainWindow.interpolationCheckBox.CheckedChanged += new EventHandler(interpolationCheckBox_CheckedChanged); }
private void InitializeData() { excelDataProvider = new ExcelDataProvider(); excelDataProvider.HasIDColumn = true; //here, i can not use my data, if so ,it will crash. so i comment you component //temporarily excelDataProvider.Load("world data.xls"); mapData = new MapData(); mapData = MapReader.Read("world5.map", "world.dbf"); //int i = mapData.GetRegionId(0.3f,0.4f); }