本文整理匯總了Java中com.rapidminer.datatable.ValueMappingDataTableView類的典型用法代碼示例。如果您正苦於以下問題:Java ValueMappingDataTableView類的具體用法?Java ValueMappingDataTableView怎麽用?Java ValueMappingDataTableView使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ValueMappingDataTableView類屬於com.rapidminer.datatable包,在下文中一共展示了ValueMappingDataTableView類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: PlotData
import com.rapidminer.datatable.ValueMappingDataTableView; //導入依賴的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();
}
示例2: getValueMappingDataTable
import com.rapidminer.datatable.ValueMappingDataTableView; //導入依賴的package包/類
/**
* @return the valueMappingDataTable
*/
public ValueMappingDataTableView getValueMappingDataTable() {
return valueMappingDataTable;
}
示例3: PlotData
import com.rapidminer.datatable.ValueMappingDataTableView; //導入依賴的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();
}