當前位置: 首頁>>代碼示例>>Java>>正文


Java FilteredDataTable類代碼示例

本文整理匯總了Java中com.rapidminer.datatable.FilteredDataTable的典型用法代碼示例。如果您正苦於以下問題:Java FilteredDataTable類的具體用法?Java FilteredDataTable怎麽用?Java FilteredDataTable使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


FilteredDataTable類屬於com.rapidminer.datatable包,在下文中一共展示了FilteredDataTable類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: PlotData

import com.rapidminer.datatable.FilteredDataTable; //導入依賴的package包/類
public PlotData(PlotInstance plotInstance, DataTable dataTable) {
	if (plotInstance == null) {
		throw new IllegalArgumentException("null not allowed for plotInstance");
	}
	this.plotInstance = plotInstance;
	plotInstance.setPlotData(this);
	PlotConfiguration plotConfiguration = plotInstance.getMasterPlotConfiguration();
	// if (plotConfiguration.getPrioritizedListenerCount() > 0) {
	// plotConfiguration.clearPrioritizedListeners();
	// }
	plotConfiguration.addPlotConfigurationListener(this, true);

	this.originalDataTable = dataTable;
	originalDataTable.addDataTableListener(this, true);

	valueMappingDataTable = new ValueMappingDataTableView(originalDataTable);
	for (int i = 0; i < valueMappingDataTable.getColumnNumber(); ++i) {
		if (valueMappingDataTable.isNominal(i)) {
			valueMappingDataTable.setMappingProvider(i, new NominalSortingDataTableMapping(valueMappingDataTable, i,
					true));
		}
	}

	// add filtered data table view to view stack
	filteredDataTableView = new FilteredDataTable(valueMappingDataTable);

	// add sorted data table view on view stack (without sort provider for now)
	sortedDataTableView = new SortedDataTableView(filteredDataTableView, null);
	sortedDataTableView.addDataTableListener(this, true);

	// init valueSourceDataMap
	for (ValueSource valueSource : plotConfiguration.getAllValueSources()) {
		ValueSourceData valueSourceData = new ValueSourceData(valueSource, plotInstance);
		valueSourceDataMap.put(valueSource.getId(), valueSourceData);
	}

	// init dimensionConfigDataMap
	for (DefaultDimensionConfig dimensionConfig : plotConfiguration.getDefaultDimensionConfigs().values()) {
		DimensionConfigData dimensionConfigData = new DimensionConfigData(plotInstance, dimensionConfig);
		dimensionConfigDataMap.put(dimensionConfig.getId(), dimensionConfigData);
	}
	DefaultDimensionConfig domainConfig;
	domainConfig = plotConfiguration.getDomainConfigManager().getDomainConfig(true);
	dimensionConfigDataMap.put(domainConfig.getId(), new DimensionConfigData(plotInstance, domainConfig));
	domainConfig = plotConfiguration.getDomainConfigManager().getDomainConfig(false);
	dimensionConfigDataMap.put(domainConfig.getId(), new DimensionConfigData(plotInstance, domainConfig));

	// init DomainConfigManagerData
	domainConfigManagerData = new DomainConfigManagerData(plotInstance);

	// init RangeAxisDataMap
	for (RangeAxisConfig rangeAxisConfig : plotConfiguration.getRangeAxisConfigs()) {
		RangeAxisData rangeAxisData = new RangeAxisData(rangeAxisConfig, plotInstance);
		rangeAxisDataMap.put(rangeAxisConfig.getId(), rangeAxisData);
	}

	clearCache();
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:59,代碼來源:PlotData.java

示例2: PlotData

import com.rapidminer.datatable.FilteredDataTable; //導入依賴的package包/類
public PlotData(PlotInstance plotInstance, DataTable dataTable) {
	if (plotInstance == null) {
		throw new IllegalArgumentException("null not allowed for plotInstance");
	}
	this.plotInstance = plotInstance;
	plotInstance.setPlotData(this);
	PlotConfiguration plotConfiguration = plotInstance.getMasterPlotConfiguration();
	//		if (plotConfiguration.getPrioritizedListenerCount() > 0) {
	//			plotConfiguration.clearPrioritizedListeners();
	//		}
	plotConfiguration.addPlotConfigurationListener(this, true);

	this.originalDataTable = dataTable;
	originalDataTable.addDataTableListener(this, true);

	valueMappingDataTable = new ValueMappingDataTableView(originalDataTable);
	for (int i = 0; i < valueMappingDataTable.getColumnNumber(); ++i) {
		if (valueMappingDataTable.isNominal(i)) {
			valueMappingDataTable.setMappingProvider(i, new NominalSortingDataTableMapping(valueMappingDataTable, i, true));
		}
	}

	// add filtered data table view to view stack
	filteredDataTableView = new FilteredDataTable(valueMappingDataTable);

	// add sorted data table view on view stack (without sort provider for now)
	sortedDataTableView = new SortedDataTableView(filteredDataTableView, null);
	sortedDataTableView.addDataTableListener(this, true);

	// init valueSourceDataMap
	for (ValueSource valueSource : plotConfiguration.getAllValueSources()) {
		ValueSourceData valueSourceData = new ValueSourceData(valueSource, plotInstance);
		valueSourceDataMap.put(valueSource.getId(), valueSourceData);
	}

	// init dimensionConfigDataMap
	for (DefaultDimensionConfig dimensionConfig : plotConfiguration.getDefaultDimensionConfigs().values()) {
		DimensionConfigData dimensionConfigData = new DimensionConfigData(plotInstance, dimensionConfig);
		dimensionConfigDataMap.put(dimensionConfig.getId(), dimensionConfigData);
	}
	DefaultDimensionConfig domainConfig;
	domainConfig = plotConfiguration.getDomainConfigManager().getDomainConfig(true);
	dimensionConfigDataMap.put(domainConfig.getId(), new DimensionConfigData(plotInstance, domainConfig));
	domainConfig = plotConfiguration.getDomainConfigManager().getDomainConfig(false);
	dimensionConfigDataMap.put(domainConfig.getId(), new DimensionConfigData(plotInstance, domainConfig));

	// init DomainConfigManagerData
	domainConfigManagerData = new DomainConfigManagerData(plotInstance);

	// init RangeAxisDataMap
	for (RangeAxisConfig rangeAxisConfig : plotConfiguration.getRangeAxisConfigs()) {
		RangeAxisData rangeAxisData = new RangeAxisData(rangeAxisConfig, plotInstance);
		rangeAxisDataMap.put(rangeAxisConfig.getId(), rangeAxisData);
	}

	clearCache();
}
 
開發者ID:rapidminer,項目名稱:rapidminer-5,代碼行數:58,代碼來源:PlotData.java


注:本文中的com.rapidminer.datatable.FilteredDataTable類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。