@Override public CorrelationAnalysis createAnalysis() { CorrelationAnalysis analysis = new CorrelationAnalysis(); analysis.setTitle(analysisDetailsPage.getAnalysisTitle()); analysis.setDescription(analysisDetailsPage.getAnalysisDescription()); analysis.setProperties(analysisDetailsPage.getAnalysisProperties()); analysis.setAttributeIndex(corrPage.getAttributeIndex()); analysis.setReplaceNanValue( corrPage.isReplaceNanValuesEnabled() ? corrPage.getReplaceNanValue() : null); analysis.setTransposeData(corrPage.isTransposeEnabled()); analysis.setData(new ResourceReference<IMatrix>("data", data)); return analysis; }
@Override public void addPages() { // Correlation method corrPage = new CorrelationFromEditorPage(data.getLayers()); addPage(corrPage); // Analysis details analysisDetailsPage = new AnalysisDetailsPage(); analysisDetailsPage.setAnalysisTitle("Correlation"); addPage(analysisDetailsPage); }