- Timestamp:
- 01/11/11 15:03:46 (13 years ago)
- Location:
- branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/DataAnalysisProblemDataCorrelationsView.cs
r4484 r5275 55 55 double[] var0 = ds.GetEnumeratedVariableValues(a).ToArray(); 56 56 double[] var1 = ds.GetEnumeratedVariableValues(b).ToArray(); 57 double r = alglib. correlation.spearmanrankcorrelation(var0, var1, var0.Length);57 double r = alglib.spearmancorr2(var0, var1, var0.Length); 58 58 double bothtails, temp; 59 59 bothtails = temp = 0.0; -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/DataAnalysisProblemDataView.cs
r4068 r5275 40 40 } 41 41 42 protected override void SetEnabledStateOfControls() { 43 base.SetEnabledStateOfControls(); 44 importButton.Enabled = Enabled && !ReadOnly && !Locked; 45 } 46 42 47 private void importButton_Click(object sender, EventArgs e) { 43 48 if (openFileDialog == null) openFileDialog = new OpenFileDialog(); … … 46 51 try { 47 52 Content.ImportFromFile(openFileDialog.FileName); 48 importButton.Enabled = false;49 53 } 50 54 catch (Exception ex) { … … 53 57 } 54 58 } 59 60 55 61 } 56 62 } -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/DataAnalysisSolutionView.Designer.cs
r3884 r5275 45 45 private void InitializeComponent() { 46 46 this.dataTabPage = new System.Windows.Forms.TabPage(); 47 this.dataViewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost(); 47 48 this.modelTabPage = new System.Windows.Forms.TabPage(); 49 this.modelViewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost(); 48 50 this.tabControl = new System.Windows.Forms.TabControl(); 49 this.modelViewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost();50 this.viewHost1 = new HeuristicLab.MainForm.WindowsForms.ViewHost();51 this.dataViewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost();52 51 this.dataTabPage.SuspendLayout(); 53 52 this.modelTabPage.SuspendLayout(); … … 66 65 this.dataTabPage.UseVisualStyleBackColor = true; 67 66 // 67 // dataViewHost 68 // 69 this.dataViewHost.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 70 | System.Windows.Forms.AnchorStyles.Left) 71 | System.Windows.Forms.AnchorStyles.Right))); 72 this.dataViewHost.Caption = "DataAnalysisSolution Data View"; 73 this.dataViewHost.Content = null; 74 this.dataViewHost.Enabled = false; 75 this.dataViewHost.Location = new System.Drawing.Point(6, 6); 76 this.dataViewHost.Name = "dataViewHost"; 77 this.dataViewHost.ReadOnly = false; 78 this.dataViewHost.Size = new System.Drawing.Size(360, 224); 79 this.dataViewHost.TabIndex = 2; 80 this.dataViewHost.ViewType = null; 81 // 68 82 // modelTabPage 69 83 // … … 76 90 this.modelTabPage.Text = "Model"; 77 91 this.modelTabPage.UseVisualStyleBackColor = true; 92 // 93 // modelViewHost 94 // 95 this.modelViewHost.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 96 | System.Windows.Forms.AnchorStyles.Left) 97 | System.Windows.Forms.AnchorStyles.Right))); 98 this.modelViewHost.Caption = "DataAnalysisSolution Model View"; 99 this.modelViewHost.Content = null; 100 this.modelViewHost.Enabled = false; 101 this.modelViewHost.Location = new System.Drawing.Point(6, 6); 102 this.modelViewHost.Name = "modelViewHost"; 103 this.modelViewHost.ReadOnly = false; 104 this.modelViewHost.Size = new System.Drawing.Size(360, 224); 105 this.modelViewHost.TabIndex = 1; 106 this.modelViewHost.ViewType = null; 78 107 // 79 108 // tabControl … … 89 118 this.tabControl.Size = new System.Drawing.Size(380, 262); 90 119 this.tabControl.TabIndex = 1; 91 //92 // modelViewHost93 //94 this.modelViewHost.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)95 | System.Windows.Forms.AnchorStyles.Left)96 | System.Windows.Forms.AnchorStyles.Right)));97 this.modelViewHost.Caption = "DataAnalysisSolution Model View";98 this.modelViewHost.Content = null;99 this.modelViewHost.Location = new System.Drawing.Point(6, 6);100 this.modelViewHost.Name = "modelViewHost";101 this.modelViewHost.ReadOnly = false;102 this.modelViewHost.Size = new System.Drawing.Size(360, 224);103 this.modelViewHost.TabIndex = 1;104 this.modelViewHost.ViewType = null;105 //106 // viewHost1107 //108 this.viewHost1.Caption = "View";109 this.viewHost1.Content = null;110 this.viewHost1.Location = new System.Drawing.Point(6, 6);111 this.viewHost1.Name = "viewHost1";112 this.viewHost1.ReadOnly = false;113 this.viewHost1.Size = new System.Drawing.Size(360, 224);114 this.viewHost1.TabIndex = 1;115 this.viewHost1.ViewType = null;116 //117 // dataViewHost118 //119 this.dataViewHost.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)120 | System.Windows.Forms.AnchorStyles.Left)121 | System.Windows.Forms.AnchorStyles.Right)));122 this.dataViewHost.Caption = "DataAnalysisSolution Data View";123 this.dataViewHost.Content = null;124 this.dataViewHost.Location = new System.Drawing.Point(6, 6);125 this.dataViewHost.Name = "dataViewHost";126 this.dataViewHost.ReadOnly = false;127 this.dataViewHost.Size = new System.Drawing.Size(360, 224);128 this.dataViewHost.TabIndex = 2;129 this.dataViewHost.ViewType = null;130 120 // 131 121 // DataAnalysisSolutionView … … 149 139 protected System.Windows.Forms.TabPage modelTabPage; 150 140 protected HeuristicLab.MainForm.WindowsForms.ViewHost dataViewHost; 151 private HeuristicLab.MainForm.WindowsForms.ViewHost viewHost1;152 141 protected HeuristicLab.MainForm.WindowsForms.ViewHost modelViewHost; 153 142 } -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/EstimatedValuesView.cs
r4068 r5275 47 47 InitializeComponent(); 48 48 matrixView = new StringConvertibleMatrixView(); 49 matrixView.ShowRowsAndColumnsTextBox = false; 50 matrixView.ShowStatisticalInformation = false; 49 51 matrixView.Dock = DockStyle.Fill; 50 52 this.Controls.Add(matrixView); … … 82 84 DoubleMatrix matrix = null; 83 85 if (Content != null) { 84 double[,] values = 85 MatrixExtensions<double>.Create( 86 Content.ProblemData.Dataset.GetVariableValues(Content.ProblemData.TargetVariable.Value), 87 Content.EstimatedValues.ToArray()); 86 double[,] values = new double[Content.ProblemData.Dataset.Rows, 4]; 87 88 double[] target = Content.ProblemData.Dataset.GetVariableValues(Content.ProblemData.TargetVariable.Value); 89 double[] estimated = Content.EstimatedValues.ToArray(); 90 for (int row = 0; row < target.Length; row++) { 91 values[row, 0] = target[row]; 92 values[row, 1] = estimated[row]; 93 values[row, 2] = estimated[row] - target[row]; 94 values[row, 3] = estimated[row] / target[row] - 1; 95 } 96 88 97 matrix = new DoubleMatrix(values); 89 matrix.ColumnNames = new string[] { "Original", "Estimated" };98 matrix.ColumnNames = new string[] { "Original", "Estimated", "Error", "Rel. Error" }; 90 99 } 91 100 matrixView.Content = matrix; -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/HeuristicLab.Problems.DataAnalysis.Views-3.3.csproj
r5265 r5275 92 92 </PropertyGroup> 93 93 <ItemGroup> 94 <Reference Include="HeuristicLab.Common.Resources-3.3, Version=3.2.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=x86" /> 94 <Reference Include="ALGLIB-3.1.0"> 95 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\ALGLIB-3.1.0.dll</HintPath> 96 </Reference> 97 <Reference Include="HeuristicLab.ALGLIB-3.1.0"> 98 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.ALGLIB-3.1.0.dll</HintPath> 99 </Reference> 100 <Reference Include="HeuristicLab.Analysis-3.3"> 101 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Analysis-3.3.dll</HintPath> 102 </Reference> 103 <Reference Include="HeuristicLab.Collections-3.3"> 104 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Collections-3.3.dll</HintPath> 105 </Reference> 106 <Reference Include="HeuristicLab.Common-3.3"> 107 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Common-3.3.dll</HintPath> 108 </Reference> 109 <Reference Include="HeuristicLab.Common.Resources-3.3, Version=3.2.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=x86"> 110 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Common.Resources-3.3.dll</HintPath> 111 </Reference> 112 <Reference Include="HeuristicLab.Core-3.3"> 113 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Core-3.3.dll</HintPath> 114 </Reference> 115 <Reference Include="HeuristicLab.Core.Views-3.3"> 116 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Core.Views-3.3.dll</HintPath> 117 </Reference> 118 <Reference Include="HeuristicLab.Data-3.3"> 119 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Data-3.3.dll</HintPath> 120 </Reference> 121 <Reference Include="HeuristicLab.Data.Views-3.3"> 122 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Data.Views-3.3.dll</HintPath> 123 </Reference> 124 <Reference Include="HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.3"> 125 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.3.dll</HintPath> 126 </Reference> 127 <Reference Include="HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views-3.3"> 128 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views-3.3.dll</HintPath> 129 </Reference> 130 <Reference Include="HeuristicLab.MainForm-3.3"> 131 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.MainForm-3.3.dll</HintPath> 132 </Reference> 133 <Reference Include="HeuristicLab.MainForm.WindowsForms-3.3"> 134 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.MainForm.WindowsForms-3.3.dll</HintPath> 135 </Reference> 136 <Reference Include="HeuristicLab.Operators-3.3"> 137 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Operators-3.3.dll</HintPath> 138 </Reference> 139 <Reference Include="HeuristicLab.Optimization-3.3"> 140 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Optimization-3.3.dll</HintPath> 141 </Reference> 142 <Reference Include="HeuristicLab.Optimization.Views-3.3"> 143 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Optimization.Views-3.3.dll</HintPath> 144 </Reference> 145 <Reference Include="HeuristicLab.Persistence-3.3"> 146 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Persistence-3.3.dll</HintPath> 147 </Reference> 148 <Reference Include="HeuristicLab.PluginInfrastructure-3.3"> 149 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath> 150 </Reference> 151 <Reference Include="HeuristicLab.Visualization.ChartControlsExtensions-3.3"> 152 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Visualization.ChartControlsExtensions-3.3.dll</HintPath> 153 </Reference> 95 154 <Reference Include="System" /> 96 155 <Reference Include="System.Core"> … … 99 158 <Reference Include="System.Drawing" /> 100 159 <Reference Include="System.Windows.Forms" /> 101 <Reference Include="System.Windows.Forms.DataVisualization , Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />160 <Reference Include="System.Windows.Forms.DataVisualization" /> 102 161 <Reference Include="System.Xml.Linq"> 103 162 <RequiredTargetFramework>3.5</RequiredTargetFramework> … … 113 172 <None Include="HeuristicLabProblemsDataAnalysisViewsPlugin.cs.frame" /> 114 173 <None Include="Properties\AssemblyInfo.frame" /> 115 <Compile Include="RunCollectionValidationTrajectoryView.cs" /> 174 <Compile Include="RunCollectionValidationTrajectoryView.cs"> 175 <SubType>UserControl</SubType> 176 </Compile> 116 177 <Compile Include="RunCollectionValidationTrajectoryView.Designer.cs"> 117 178 <DependentUpon>RunCollectionValidationTrajectoryView.cs</DependentUpon> 118 179 </Compile> 119 <Compile Include="RunCollectionValidationStatisticsView.cs" /> 180 <Compile Include="RunCollectionValidationStatisticsView.cs"> 181 <SubType>UserControl</SubType> 182 </Compile> 120 183 <Compile Include="RunCollectionValidationStatisticsView.Designer.cs"> 121 184 <DependentUpon>RunCollectionValidationStatisticsView.cs</DependentUpon> 122 185 </Compile> 123 <Compile Include="DataAnalysisProblemDataCorrelationsView.cs" /> 186 <Compile Include="DataAnalysisProblemDataCorrelationsView.cs"> 187 <SubType>UserControl</SubType> 188 </Compile> 124 189 <Compile Include="DataAnalysisProblemDataCorrelationsView.Designer.cs"> 125 190 <DependentUpon>DataAnalysisProblemDataCorrelationsView.cs</DependentUpon> 126 191 </Compile> 127 <Compile Include="RunCollectionMonteCarloVariableImpactView.cs" /> 192 <Compile Include="RunCollectionMonteCarloVariableImpactView.cs"> 193 <SubType>UserControl</SubType> 194 </Compile> 128 195 <Compile Include="RunCollectionMonteCarloVariableImpactView.Designer.cs"> 129 196 <DependentUpon>RunCollectionMonteCarloVariableImpactView.cs</DependentUpon> 130 197 </Compile> 131 <Compile Include="RunCollectionWinklerVariableImpactView.cs" /> 198 <Compile Include="RunCollectionWinklerVariableImpactView.cs"> 199 <SubType>UserControl</SubType> 200 </Compile> 132 201 <Compile Include="RunCollectionWinklerVariableImpactView.Designer.cs"> 133 202 <DependentUpon>RunCollectionWinklerVariableImpactView.cs</DependentUpon> 134 203 </Compile> 135 <Compile Include="DataAnalysisSolutionView.cs" /> 204 <Compile Include="DataAnalysisSolutionView.cs"> 205 <SubType>UserControl</SubType> 206 </Compile> 136 207 <Compile Include="DataAnalysisSolutionView.Designer.cs"> 137 208 <DependentUpon>DataAnalysisSolutionView.cs</DependentUpon> 138 209 </Compile> 139 <Compile Include="ResultsView.cs" /> 210 <Compile Include="ResultsView.cs"> 211 <SubType>UserControl</SubType> 212 </Compile> 140 213 <Compile Include="ResultsView.Designer.cs"> 141 214 <DependentUpon>ResultsView.cs</DependentUpon> 142 215 </Compile> 143 <Compile Include="RunCollectionVariableImpactView.cs" /> 216 <Compile Include="RunCollectionVariableImpactView.cs"> 217 <SubType>UserControl</SubType> 218 </Compile> 144 219 <Compile Include="RunCollectionVariableImpactView.Designer.cs"> 145 220 <DependentUpon>RunCollectionVariableImpactView.cs</DependentUpon> 146 221 </Compile> 147 <Compile Include="SupportVectorRegressionSolutionView.cs" /> 222 <Compile Include="SupportVectorRegressionSolutionView.cs"> 223 <SubType>UserControl</SubType> 224 </Compile> 148 225 <Compile Include="SupportVectorRegressionSolutionView.Designer.cs"> 149 226 <DependentUpon>SupportVectorRegressionSolutionView.cs</DependentUpon> 150 227 </Compile> 151 <Compile Include="SupportVectorMachineModelView.cs" /> 228 <Compile Include="SupportVectorMachineModelView.cs"> 229 <SubType>UserControl</SubType> 230 </Compile> 152 231 <Compile Include="SupportVectorMachineModelView.Designer.cs"> 153 232 <DependentUpon>SupportVectorMachineModelView.cs</DependentUpon> 154 233 </Compile> 155 <Compile Include="EstimatedValuesView.cs" /> 234 <Compile Include="EstimatedValuesView.cs"> 235 <SubType>UserControl</SubType> 236 </Compile> 156 237 <Compile Include="EstimatedValuesView.Designer.cs"> 157 238 <DependentUpon>EstimatedValuesView.cs</DependentUpon> 158 239 </Compile> 159 <Compile Include="DataAnalysisProblemDataView.cs" /> 240 <Compile Include="DataAnalysisProblemDataView.cs"> 241 <SubType>UserControl</SubType> 242 </Compile> 160 243 <Compile Include="DataAnalysisProblemDataView.Designer.cs"> 161 244 <DependentUpon>DataAnalysisProblemDataView.cs</DependentUpon> 162 245 </Compile> 163 246 <Compile Include="HeuristicLabProblemsDataAnalysisViewsPlugin.cs" /> 164 <Compile Include="LineChartView.cs" /> 247 <Compile Include="LineChartView.cs"> 248 <SubType>UserControl</SubType> 249 </Compile> 165 250 <Compile Include="LineChartView.Designer.cs"> 166 251 <DependentUpon>LineChartView.cs</DependentUpon> 167 252 </Compile> 168 253 <Compile Include="Properties\AssemblyInfo.cs" /> 169 <Compile Include="ScatterPlotView.cs" /> 254 <Compile Include="ScatterPlotView.cs"> 255 <SubType>UserControl</SubType> 256 </Compile> 170 257 <Compile Include="ScatterPlotView.Designer.cs"> 171 258 <DependentUpon>ScatterPlotView.cs</DependentUpon> 172 259 </Compile> 173 <Compile Include="Symbolic\LatexSymbolicExpressionTreeView.cs" /> 260 <Compile Include="Symbolic\LatexSymbolicExpressionTreeView.cs"> 261 <SubType>UserControl</SubType> 262 </Compile> 174 263 <Compile Include="Symbolic\LatexSymbolicExpressionTreeView.Designer.cs"> 175 264 <DependentUpon>LatexSymbolicExpressionTreeView.cs</DependentUpon> 176 265 </Compile> 177 266 <Compile Include="Symbolic\SymbolicExpressionTreeLatexFormatter.cs" /> 178 <Compile Include="Symbolic\GraphvizSymbolicExpressionTreeView.cs" /> 267 <Compile Include="Symbolic\GraphvizSymbolicExpressionTreeView.cs"> 268 <SubType>UserControl</SubType> 269 </Compile> 179 270 <Compile Include="Symbolic\GraphvizSymbolicExpressionTreeView.Designer.cs"> 180 271 <DependentUpon>GraphvizSymbolicExpressionTreeView.cs</DependentUpon> 181 272 </Compile> 182 <Compile Include="Symbolic\InteractiveSymbolicRegressionSolutionSimplifierView.cs" /> 273 <Compile Include="Symbolic\InteractiveSymbolicRegressionSolutionSimplifierView.cs"> 274 <SubType>UserControl</SubType> 275 </Compile> 183 276 <Compile Include="Symbolic\InteractiveSymbolicRegressionSolutionSimplifierView.Designer.cs"> 184 277 <DependentUpon>InteractiveSymbolicRegressionSolutionSimplifierView.cs</DependentUpon> 185 278 </Compile> 186 <Compile Include="Symbolic\SimplifiedSymbolicExpressionModelView.cs" /> 279 <Compile Include="Symbolic\SimplifiedSymbolicExpressionModelView.cs"> 280 <SubType>UserControl</SubType> 281 </Compile> 187 282 <Compile Include="Symbolic\SimplifiedSymbolicExpressionModelView.designer.cs"> 188 283 <DependentUpon>SimplifiedSymbolicExpressionModelView.cs</DependentUpon> 189 284 </Compile> 190 <Compile Include="Symbolic\SymbolicExpressionModelView.cs" /> 285 <Compile Include="Symbolic\SymbolicExpressionModelView.cs"> 286 <SubType>UserControl</SubType> 287 </Compile> 191 288 <Compile Include="Symbolic\SymbolicExpressionModelView.designer.cs"> 192 289 <DependentUpon>SymbolicExpressionModelView.cs</DependentUpon> 193 290 </Compile> 194 <Compile Include="Symbolic\SymbolicRegressionSolutionView.cs" /> 291 <Compile Include="Symbolic\SymbolicRegressionSolutionView.cs"> 292 <SubType>UserControl</SubType> 293 </Compile> 195 294 <Compile Include="Symbolic\SymbolicRegressionSolutionView.Designer.cs"> 196 295 <DependentUpon>SymbolicRegressionSolutionView.cs</DependentUpon> 197 296 </Compile> 198 <Compile Include="Symbolic\Symbols\ConstantView.cs" /> 297 <Compile Include="Symbolic\Symbols\ConstantView.cs"> 298 <SubType>UserControl</SubType> 299 </Compile> 199 300 <Compile Include="Symbolic\Symbols\ConstantView.Designer.cs"> 200 301 <DependentUpon>ConstantView.cs</DependentUpon> 201 302 </Compile> 202 <Compile Include="Symbolic\Symbols\LaggedVariableView.cs" /> 303 <Compile Include="Symbolic\Symbols\LaggedVariableView.cs"> 304 <SubType>UserControl</SubType> 305 </Compile> 203 306 <Compile Include="Symbolic\Symbols\LaggedVariableView.Designer.cs"> 204 307 <DependentUpon>LaggedVariableView.cs</DependentUpon> 205 308 </Compile> 206 309 <Compile Include="Symbolic\SymbolicExpressionTreeGraphvizFormatter.cs" /> 207 <Compile Include="Symbolic\Symbols\VariableView.cs" /> 310 <Compile Include="Symbolic\Symbols\VariableView.cs"> 311 <SubType>UserControl</SubType> 312 </Compile> 208 313 <Compile Include="Symbolic\Symbols\VariableView.Designer.cs"> 209 314 <DependentUpon>VariableView.cs</DependentUpon> -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/HeuristicLabProblemsDataAnalysisViewsPlugin.cs.frame
r3975 r5275 28 28 [Plugin("HeuristicLab.Problems.DataAnalysis.Views","3.3.0.$WCREV$")] 29 29 [PluginFile("HeuristicLab.Problems.DataAnalysis.Views-3.3.dll", PluginFileType.Assembly)] 30 [PluginDependency("HeuristicLab.ALGLIB"," 2.5.0.0")]30 [PluginDependency("HeuristicLab.ALGLIB","3.1")] 31 31 [PluginDependency("HeuristicLab.Collections", "3.3.0.0")] 32 32 [PluginDependency("HeuristicLab.Common", "3.3.0.0")] -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/LineChartView.Designer.cs
r3442 r5275 46 46 System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); 47 47 System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); 48 this.chart = new System.Windows.Forms.DataVisualization.Charting.Chart();48 this.chart = new HeuristicLab.Visualization.ChartControlsExtensions.EnhancedChart(); 49 49 ((System.ComponentModel.ISupportInitialize)(this.chart)).BeginInit(); 50 50 this.SuspendLayout(); … … 63 63 this.chart.Size = new System.Drawing.Size(358, 225); 64 64 this.chart.TabIndex = 0; 65 this.chart.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.Chart_MouseDoubleClick); 65 66 // 66 // QualityLineChart67 // LineChartView 67 68 // 68 69 this.AllowDrop = true; … … 70 71 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 71 72 this.Controls.Add(this.chart); 72 this.Name = " QualityLineChart";73 this.Name = "LineChartView"; 73 74 this.Size = new System.Drawing.Size(358, 225); 74 75 ((System.ComponentModel.ISupportInitialize)(this.chart)).EndInit(); … … 79 80 #endregion 80 81 81 private System.Windows.Forms.DataVisualization.Charting.Chart chart;82 private HeuristicLab.Visualization.ChartControlsExtensions.EnhancedChart chart; 82 83 } 83 84 } -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/LineChartView.cs
r4068 r5275 43 43 InitializeComponent(); 44 44 //configure axis 45 this.chart.CustomizeAllChartAreas(); 45 46 this.chart.ChartAreas[0].CursorX.IsUserSelectionEnabled = true; 46 47 this.chart.ChartAreas[0].AxisX.ScaleView.Zoomable = true; … … 120 121 } 121 122 } 123 124 private void Chart_MouseDoubleClick(object sender, MouseEventArgs e) { 125 HitTestResult result = chart.HitTest(e.X, e.Y); 126 if (result.ChartArea != null && (result.ChartElementType == ChartElementType.PlottingArea || 127 result.ChartElementType == ChartElementType.Gridlines) || 128 result.ChartElementType == ChartElementType.StripLines) { 129 foreach (var axis in result.ChartArea.Axes) 130 axis.ScaleView.ZoomReset(int.MaxValue); 131 } 132 } 122 133 #endregion 123 134 -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/ResultsView.cs
r4068 r5275 31 31 [View("Results View")] 32 32 public partial class ResultsView : AsynchronousContentView { 33 private List<string> rowNames = new List<string>() { "Mean SquaredError", "CoefficientOfDetermination", "MeanAbsolutePercentageError" };33 private List<string> rowNames = new List<string>() { "Mean squared error", "Pearson's R²", "Average relative error" }; 34 34 private List<string> columnNames = new List<string>() { "Training", "Test" }; 35 35 … … 77 77 matrix.SortableView = false; 78 78 79 IEnumerable<double> originalTrainingValues = Content.ProblemData.Dataset.Get VariableValues(Content.ProblemData.TargetVariable.Value, Content.ProblemData.TrainingSamplesStart.Value, Content.ProblemData.TrainingSamplesEnd.Value);80 IEnumerable<double> originalTestValues = Content.ProblemData.Dataset.Get VariableValues(Content.ProblemData.TargetVariable.Value, Content.ProblemData.TestSamplesStart.Value, Content.ProblemData.TestSamplesEnd.Value);79 IEnumerable<double> originalTrainingValues = Content.ProblemData.Dataset.GetEnumeratedVariableValues(Content.ProblemData.TargetVariable.Value, Content.ProblemData.TrainingIndizes); 80 IEnumerable<double> originalTestValues = Content.ProblemData.Dataset.GetEnumeratedVariableValues(Content.ProblemData.TargetVariable.Value, Content.ProblemData.TestIndizes); 81 81 matrix[0, 0] = SimpleMSEEvaluator.Calculate(originalTrainingValues, Content.EstimatedTrainingValues); 82 82 matrix[0, 1] = SimpleMSEEvaluator.Calculate(originalTestValues, Content.EstimatedTestValues); -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/RunCollectionMonteCarloVariableImpactView.cs
r5010 r5275 23 23 using System.Linq; 24 24 using System.Windows.Forms; 25 using alglib;26 25 using HeuristicLab.Common; 27 26 using HeuristicLab.Data; -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/RunCollectionValidationStatisticsView.cs
r4197 r5275 23 23 using System.Linq; 24 24 using System.Windows.Forms; 25 using alglib;26 25 using HeuristicLab.Common; 27 26 using HeuristicLab.Data; -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/RunCollectionValidationTrajectoryView.cs
r4197 r5275 23 23 using System.Linq; 24 24 using System.Windows.Forms; 25 using alglib;26 25 using HeuristicLab.Common; 27 26 using HeuristicLab.Data; -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/RunCollectionVariableImpactView.cs
r5010 r5275 20 20 #endregion 21 21 22 using System; 22 23 using System.Collections.Generic; 23 24 using System.Linq; 24 25 using System.Windows.Forms; 25 using alglib;26 26 using HeuristicLab.Common; 27 27 using HeuristicLab.Data; … … 29 29 using HeuristicLab.MainForm.WindowsForms; 30 30 using HeuristicLab.Optimization; 31 using System;32 31 33 32 namespace HeuristicLab.Problems.DataAnalysis.Views { 34 33 [Content(typeof(RunCollection), false)] 35 34 [View("RunCollection Variable Impact View")] 36 public partial class RunCollectionVariableImpactView : AsynchronousContentView {35 public sealed partial class RunCollectionVariableImpactView : AsynchronousContentView { 37 36 private const string variableImpactResultName = "Integrated variable frequencies"; 38 37 public RunCollectionVariableImpactView() { … … 45 44 } 46 45 46 #region events 47 47 protected override void RegisterContentEvents() { 48 48 base.RegisterContentEvents(); 49 this.Content.ItemsAdded += new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_ItemsAdded); 50 this.Content.ItemsRemoved += new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_ItemsRemoved); 51 this.Content.CollectionReset += new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_CollectionReset); 49 Content.UpdateOfRunsInProgressChanged += new EventHandler(Content_UpdateOfRunsInProgressChanged); 50 Content.ItemsAdded += new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_ItemsAdded); 51 Content.ItemsRemoved += new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_ItemsRemoved); 52 Content.CollectionReset += new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_CollectionReset); 53 RegisterRunEvents(Content); 52 54 } 53 55 protected override void DeregisterContentEvents() { 54 56 base.RegisterContentEvents(); 55 this.Content.ItemsAdded -= new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_ItemsAdded); 56 this.Content.ItemsRemoved -= new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_ItemsRemoved); 57 this.Content.CollectionReset -= new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_CollectionReset); 58 } 57 Content.UpdateOfRunsInProgressChanged -= new EventHandler(Content_UpdateOfRunsInProgressChanged); 58 Content.ItemsAdded -= new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_ItemsAdded); 59 Content.ItemsRemoved -= new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_ItemsRemoved); 60 Content.CollectionReset -= new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_CollectionReset); 61 DeregisterRunEvents(Content); 62 } 63 private void RegisterRunEvents(IEnumerable<IRun> runs) { 64 foreach (IRun run in runs) 65 run.Changed += new EventHandler(Run_Changed); 66 } 67 private void DeregisterRunEvents(IEnumerable<IRun> runs) { 68 foreach (IRun run in runs) 69 run.Changed -= new EventHandler(Run_Changed); 70 } 71 private void Content_ItemsAdded(object sender, HeuristicLab.Collections.CollectionItemsChangedEventArgs<IRun> e) { 72 RegisterRunEvents(e.Items); 73 UpdateData(); 74 } 75 private void Content_ItemsRemoved(object sender, HeuristicLab.Collections.CollectionItemsChangedEventArgs<IRun> e) { 76 DeregisterRunEvents(e.Items); 77 UpdateData(); 78 } 79 private void Content_CollectionReset(object sender, HeuristicLab.Collections.CollectionItemsChangedEventArgs<IRun> e) { 80 DeregisterRunEvents(e.OldItems); 81 RegisterRunEvents(e.Items); 82 UpdateData(); 83 } 84 private void Content_UpdateOfRunsInProgressChanged(object sender, EventArgs e) { 85 if (!Content.UpdateOfRunsInProgress) UpdateData(); 86 } 87 private void Run_Changed(object sender, EventArgs e) { 88 if (!Content.UpdateOfRunsInProgress) UpdateData(); 89 } 90 #endregion 59 91 60 92 protected override void OnContentChanged() { … … 62 94 this.UpdateData(); 63 95 } 64 private void Content_ItemsAdded(object sender, HeuristicLab.Collections.CollectionItemsChangedEventArgs<IRun> e) {65 this.UpdateData();66 }67 private void Content_ItemsRemoved(object sender, HeuristicLab.Collections.CollectionItemsChangedEventArgs<IRun> e) {68 this.UpdateData();69 }70 private void Content_CollectionReset(object sender, HeuristicLab.Collections.CollectionItemsChangedEventArgs<IRun> e) {71 this.UpdateData();72 }73 96 74 97 private void UpdateData() { … … 76 99 } 77 100 78 p ublicDoubleMatrix CalculateVariableImpactMatrix() {101 private DoubleMatrix CalculateVariableImpactMatrix() { 79 102 DoubleMatrix matrix = null; 80 103 if (Content != null) { 81 List<IRun> runsWithVariables = Content.Where(r => r. Results.ContainsKey(variableImpactResultName)).ToList();104 List<IRun> runsWithVariables = Content.Where(r => r.Visible && r.Results.ContainsKey(variableImpactResultName)).ToList(); 82 105 IEnumerable<DoubleMatrix> allVariableImpacts = (from run in runsWithVariables 83 106 select run.Results[variableImpactResultName]).Cast<DoubleMatrix>(); -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/RunCollectionWinklerVariableImpactView.cs
r5010 r5275 23 23 using System.Linq; 24 24 using System.Windows.Forms; 25 using alglib;26 25 using HeuristicLab.Common; 27 26 using HeuristicLab.Data; … … 140 139 z[i] = rowValues[i] - referenceValues[i]; 141 140 } 142 alglib.w sr.wilcoxonsignedranktest(z, z.Length, 0.0, ref bothTails, ref leftTail, refrightTail);141 alglib.wilcoxonsignedranktest(z, z.Length, 0.0, out bothTails, out leftTail, out rightTail); 143 142 matrix[row, columnIndex + 3] = bothTails; 144 143 } -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/ScatterPlotView.Designer.cs
r3442 r5275 47 47 System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); 48 48 System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); 49 this.chart = new System.Windows.Forms.DataVisualization.Charting.Chart();49 this.chart = new HeuristicLab.Visualization.ChartControlsExtensions.EnhancedChart(); 50 50 ((System.ComponentModel.ISupportInitialize)(this.chart)).BeginInit(); 51 51 this.SuspendLayout(); … … 82 82 #endregion 83 83 84 private System.Windows.Forms.DataVisualization.Charting.Chart chart;84 private HeuristicLab.Visualization.ChartControlsExtensions.EnhancedChart chart; 85 85 } 86 86 } -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/ScatterPlotView.cs
r4068 r5275 61 61 this.chart.AxisViewChanged += new EventHandler<System.Windows.Forms.DataVisualization.Charting.ViewEventArgs>(chart_AxisViewChanged); 62 62 63 //configure axis 63 //configure axis 64 this.chart.CustomizeAllChartAreas(); 64 65 this.chart.ChartAreas[0].AxisX.Title = "Estimated Values"; 65 66 this.chart.ChartAreas[0].CursorX.IsUserSelectionEnabled = true; … … 127 128 string targetVariableName = Content.ProblemData.TargetVariable.Value; 128 129 Dataset dataset = Content.ProblemData.Dataset; 129 int trainingStart = Content.ProblemData.TrainingSamplesStart.Value;130 int trainingEnd = Content.ProblemData.TrainingSamplesEnd.Value;131 int testStart = Content.ProblemData.TestSamplesStart.Value;132 int testEnd = Content.ProblemData.TestSamplesEnd.Value;133 130 if (this.chart.Series[ALL_SERIES].Points.Count > 0) 134 131 this.chart.Series[ALL_SERIES].Points.DataBindXY(Content.EstimatedValues.ToArray(), "", … … 136 133 if (this.chart.Series[TRAINING_SERIES].Points.Count > 0) 137 134 this.chart.Series[TRAINING_SERIES].Points.DataBindXY(Content.EstimatedTrainingValues.ToArray(), "", 138 dataset.Get VariableValues(targetVariableName, trainingStart, trainingEnd), "");135 dataset.GetEnumeratedVariableValues(targetVariableName, Content.ProblemData.TrainingIndizes).ToArray(), ""); 139 136 if (this.chart.Series[TEST_SERIES].Points.Count > 0) 140 137 this.chart.Series[TEST_SERIES].Points.DataBindXY(Content.EstimatedTestValues.ToArray(), "", 141 dataset.GetVariableValues(targetVariableName, testStart, testEnd), "");138 dataset.GetEnumeratedVariableValues(targetVariableName, Content.ProblemData.TestIndizes).ToArray(), ""); 142 139 143 140 double max = Math.Max(Content.EstimatedValues.Max(), dataset.GetVariableValues(targetVariableName).Max()); 144 141 double min = Math.Min(Content.EstimatedValues.Min(), dataset.GetVariableValues(targetVariableName).Min()); 145 142 146 max = Math.Ceiling(max) * 1.2; 147 min = Math.Floor(min) * 0.8; 143 max = max + 0.2 * Math.Abs(max); 144 min = min - 0.2 * Math.Abs(min); 145 146 double interestingValuesRange = max - min; 147 int digits = Math.Max(0, 3 - (int)Math.Log10(interestingValuesRange)); 148 149 max = Math.Round(max, digits); 150 min = Math.Round(min, digits); 148 151 149 152 this.chart.ChartAreas[0].AxisX.Maximum = max; … … 168 171 } else if (Content != null) { 169 172 string targetVariableName = Content.ProblemData.TargetVariable.Value; 170 Dataset dataset = Content.ProblemData.Dataset;171 int trainingStart = Content.ProblemData.TrainingSamplesStart.Value;172 int trainingEnd = Content.ProblemData.TrainingSamplesEnd.Value;173 int testStart = Content.ProblemData.TestSamplesStart.Value;174 int testEnd = Content.ProblemData.TestSamplesEnd.Value;175 173 176 174 IEnumerable<double> predictedValues = null; … … 178 176 switch (series.Name) { 179 177 case ALL_SERIES: 180 predictedValues = Content.EstimatedValues ;181 targetValues = dataset.GetVariableValues(targetVariableName);178 predictedValues = Content.EstimatedValues.ToArray(); 179 targetValues = Content.ProblemData.Dataset.GetVariableValues(targetVariableName); 182 180 break; 183 181 case TRAINING_SERIES: 184 predictedValues = Content.EstimatedTrainingValues ;185 targetValues = dataset.GetVariableValues(targetVariableName, trainingStart, trainingEnd);182 predictedValues = Content.EstimatedTrainingValues.ToArray(); 183 targetValues = Content.ProblemData.Dataset.GetEnumeratedVariableValues(targetVariableName, Content.ProblemData.TrainingIndizes).ToArray(); 186 184 break; 187 185 case TEST_SERIES: 188 predictedValues = Content.EstimatedTestValues ;189 targetValues = dataset.GetVariableValues(targetVariableName, testStart, testEnd);186 predictedValues = Content.EstimatedTestValues.ToArray(); 187 targetValues = Content.ProblemData.Dataset.GetEnumeratedVariableValues(targetVariableName, Content.ProblemData.TestIndizes).ToArray(); 190 188 break; 191 189 } -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/SymbolicRegressionSolutionView.Designer.cs
r3915 r5275 63 63 this.modelTabPage.Size = new System.Drawing.Size(372, 207); 64 64 // 65 // dataViewHost 66 // 67 this.dataViewHost.Size = new System.Drawing.Size(360, 195); 68 // 65 69 // modelViewHost 66 70 // -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/Symbols/ConstantView.Designer.cs
r3915 r5275 54 54 this.valueChangeSigmaTextBox = new System.Windows.Forms.TextBox(); 55 55 this.meanWeightChangeLabel = new System.Windows.Forms.Label(); 56 this.valueChange NuTextBox = new System.Windows.Forms.TextBox();56 this.valueChangeMuTextBox = new System.Windows.Forms.TextBox(); 57 57 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 58 58 this.initializationGroupBox.SuspendLayout(); … … 146 146 this.mutationGroupBox.Controls.Add(this.valueChangeSigmaTextBox); 147 147 this.mutationGroupBox.Controls.Add(this.meanWeightChangeLabel); 148 this.mutationGroupBox.Controls.Add(this.valueChange NuTextBox);148 this.mutationGroupBox.Controls.Add(this.valueChangeMuTextBox); 149 149 this.mutationGroupBox.Location = new System.Drawing.Point(3, 158); 150 150 this.mutationGroupBox.Name = "mutationGroupBox"; … … 183 183 this.meanWeightChangeLabel.Location = new System.Drawing.Point(6, 22); 184 184 this.meanWeightChangeLabel.Name = "meanWeightChangeLabel"; 185 this.meanWeightChangeLabel.Size = new System.Drawing.Size(9 7, 13);185 this.meanWeightChangeLabel.Size = new System.Drawing.Size(99, 13); 186 186 this.meanWeightChangeLabel.TabIndex = 6; 187 this.meanWeightChangeLabel.Text = "Value change ( nu):";188 this.toolTip.SetToolTip(this.meanWeightChangeLabel, "The nu (mean) parameter for the normal distribution to sample the value change.");189 // 190 // valueChange NuTextBox191 // 192 this.valueChange NuTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)193 | System.Windows.Forms.AnchorStyles.Right))); 194 this.errorProvider.SetIconAlignment(this.valueChange NuTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft);195 this.valueChange NuTextBox.Location = new System.Drawing.Point(136, 19);196 this.valueChange NuTextBox.Name = "valueChangeNuTextBox";197 this.valueChange NuTextBox.Size = new System.Drawing.Size(178, 20);198 this.valueChange NuTextBox.TabIndex = 7;199 this.toolTip.SetToolTip(this.valueChange NuTextBox, "The nu (mean) parameter for the normal distribution to sample the value change.");200 this.valueChange NuTextBox.TextChanged += new System.EventHandler(this.valueChangeNuTextBox_TextChanged);187 this.meanWeightChangeLabel.Text = "Value change (mu):"; 188 this.toolTip.SetToolTip(this.meanWeightChangeLabel, "The mu (mean) parameter for the normal distribution to sample the value change."); 189 // 190 // valueChangeMuTextBox 191 // 192 this.valueChangeMuTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 193 | System.Windows.Forms.AnchorStyles.Right))); 194 this.errorProvider.SetIconAlignment(this.valueChangeMuTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 195 this.valueChangeMuTextBox.Location = new System.Drawing.Point(136, 19); 196 this.valueChangeMuTextBox.Name = "valueChangeMuTextBox"; 197 this.valueChangeMuTextBox.Size = new System.Drawing.Size(178, 20); 198 this.valueChangeMuTextBox.TabIndex = 7; 199 this.toolTip.SetToolTip(this.valueChangeMuTextBox, "The mu (mean) parameter for the normal distribution to sample the value change."); 200 this.valueChangeMuTextBox.TextChanged += new System.EventHandler(this.valueChangeMuTextBox_TextChanged); 201 201 // 202 202 // ConstantView … … 237 237 private System.Windows.Forms.TextBox valueChangeSigmaTextBox; 238 238 private System.Windows.Forms.Label meanWeightChangeLabel; 239 private System.Windows.Forms.TextBox valueChange NuTextBox;239 private System.Windows.Forms.TextBox valueChangeMuTextBox; 240 240 241 241 } -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/Symbols/ConstantView.cs
r4068 r5275 58 58 base.SetEnabledStateOfControls(); 59 59 minValueTextBox.Enabled = Content != null; 60 minValueTextBox.ReadOnly = ReadOnly; 60 61 maxValueTextBox.Enabled = Content != null; 61 valueChangeNuTextBox.Enabled = Content != null; 62 maxValueTextBox.ReadOnly = ReadOnly; 63 valueChangeMuTextBox.Enabled = Content != null; 64 valueChangeMuTextBox.ReadOnly = ReadOnly; 62 65 valueChangeSigmaTextBox.Enabled = Content != null; 66 valueChangeSigmaTextBox.ReadOnly = ReadOnly; 63 67 } 64 68 … … 89 93 } 90 94 91 private void valueChange NuTextBox_TextChanged(object sender, EventArgs e) {95 private void valueChangeMuTextBox_TextChanged(object sender, EventArgs e) { 92 96 double nu; 93 if (double.TryParse(valueChange NuTextBox.Text, out nu)) {94 Content.Manipulator Nu = nu;95 errorProvider.SetError(valueChange NuTextBox, string.Empty);97 if (double.TryParse(valueChangeMuTextBox.Text, out nu)) { 98 Content.ManipulatorMu = nu; 99 errorProvider.SetError(valueChangeMuTextBox, string.Empty); 96 100 } else { 97 errorProvider.SetError(valueChange NuTextBox, "Invalid value");101 errorProvider.SetError(valueChangeMuTextBox, "Invalid value"); 98 102 } 99 103 } … … 120 124 minValueTextBox.Text = Content.MinValue.ToString(); 121 125 maxValueTextBox.Text = Content.MaxValue.ToString(); 122 valueChange NuTextBox.Text = Content.ManipulatorNu.ToString();126 valueChangeMuTextBox.Text = Content.ManipulatorMu.ToString(); 123 127 valueChangeSigmaTextBox.Text = Content.ManipulatorSigma.ToString(); 124 128 } -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/Symbols/LaggedVariableView.cs
r4068 r5275 57 57 base.SetEnabledStateOfControls(); 58 58 minTimeOffsetTextBox.Enabled = Content != null; 59 minTimeOffsetTextBox.ReadOnly = ReadOnly; 59 60 maxTimeOffsetTextBox.Enabled = Content != null; 61 maxTimeOffsetTextBox.ReadOnly = ReadOnly; 60 62 } 61 63 -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/Symbols/VariableView.Designer.cs
r3915 r5275 45 45 /// </summary> 46 46 private void InitializeComponent() { 47 this.weight NuLabel = new System.Windows.Forms.Label();48 this.weight NuTextBox = new System.Windows.Forms.TextBox();47 this.weightMuLabel = new System.Windows.Forms.Label(); 48 this.weightMuTextBox = new System.Windows.Forms.TextBox(); 49 49 this.initializationGroupBox = new System.Windows.Forms.GroupBox(); 50 50 this.weightSigmaLabel = new System.Windows.Forms.Label(); … … 54 54 this.weightChangeSigmaTextBox = new System.Windows.Forms.TextBox(); 55 55 this.meanWeightChangeLabel = new System.Windows.Forms.Label(); 56 this.weightChange NuTextBox = new System.Windows.Forms.TextBox();56 this.weightChangeMuTextBox = new System.Windows.Forms.TextBox(); 57 57 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 58 58 this.initializationGroupBox.SuspendLayout(); … … 66 66 // initialFrequencyTextBox 67 67 // 68 this.errorProvider.SetIconAlignment(this.initialFrequencyTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 68 69 this.initialFrequencyTextBox.Size = new System.Drawing.Size(203, 20); 69 70 // … … 76 77 // descriptionTextBox 77 78 // 79 this.errorProvider.SetIconAlignment(this.descriptionTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 78 80 this.descriptionTextBox.Size = new System.Drawing.Size(203, 20); 79 81 // 80 // weight NuLabel81 // 82 this.weight NuLabel.AutoSize = true;83 this.weight NuLabel.Location = new System.Drawing.Point(6, 22);84 this.weight NuLabel.Name = "weightNuLabel";85 this.weight NuLabel.Size = new System.Drawing.Size(65, 13);86 this.weight NuLabel.TabIndex = 6;87 this.weight NuLabel.Text = "Weight (nu):";88 this.toolTip.SetToolTip(this.weight NuLabel, "The nu (mean) parameter of the normal distribution to use for initial weights.");89 // 90 // weight NuTextBox91 // 92 this.weight NuTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)93 | System.Windows.Forms.AnchorStyles.Right))); 94 this.weight NuTextBox.Location = new System.Drawing.Point(92, 19);95 this.weight NuTextBox.Name = "weightNuTextBox";96 this.weight NuTextBox.Size = new System.Drawing.Size(201, 20);97 this.weight NuTextBox.TabIndex = 7;98 this.toolTip.SetToolTip(this.weight NuTextBox, "The nu (mean) parameter of the normal distribution from which to sample the initi" +82 // weightMuLabel 83 // 84 this.weightMuLabel.AutoSize = true; 85 this.weightMuLabel.Location = new System.Drawing.Point(6, 22); 86 this.weightMuLabel.Name = "weightMuLabel"; 87 this.weightMuLabel.Size = new System.Drawing.Size(67, 13); 88 this.weightMuLabel.TabIndex = 6; 89 this.weightMuLabel.Text = "Weight (mu):"; 90 this.toolTip.SetToolTip(this.weightMuLabel, "The mu (mean) parameter of the normal distribution to use for initial weights."); 91 // 92 // weightMuTextBox 93 // 94 this.weightMuTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 95 | System.Windows.Forms.AnchorStyles.Right))); 96 this.weightMuTextBox.Location = new System.Drawing.Point(92, 19); 97 this.weightMuTextBox.Name = "weightMuTextBox"; 98 this.weightMuTextBox.Size = new System.Drawing.Size(201, 20); 99 this.weightMuTextBox.TabIndex = 7; 100 this.toolTip.SetToolTip(this.weightMuTextBox, "The mu (mean) parameter of the normal distribution from which to sample the initi" + 99 101 "al weights."); 100 this.weight NuTextBox.TextChanged += new System.EventHandler(this.weightNuTextBox_TextChanged);102 this.weightMuTextBox.TextChanged += new System.EventHandler(this.weightMuTextBox_TextChanged); 101 103 // 102 104 // initializationGroupBox … … 106 108 this.initializationGroupBox.Controls.Add(this.weightSigmaLabel); 107 109 this.initializationGroupBox.Controls.Add(this.weightSigmaTextBox); 108 this.initializationGroupBox.Controls.Add(this.weight NuLabel);109 this.initializationGroupBox.Controls.Add(this.weight NuTextBox);110 this.initializationGroupBox.Controls.Add(this.weightMuLabel); 111 this.initializationGroupBox.Controls.Add(this.weightMuTextBox); 110 112 this.initializationGroupBox.Location = new System.Drawing.Point(3, 79); 111 113 this.initializationGroupBox.Name = "initializationGroupBox"; … … 144 146 this.mutationGroupBox.Controls.Add(this.weightChangeSigmaTextBox); 145 147 this.mutationGroupBox.Controls.Add(this.meanWeightChangeLabel); 146 this.mutationGroupBox.Controls.Add(this.weightChange NuTextBox);148 this.mutationGroupBox.Controls.Add(this.weightChangeMuTextBox); 147 149 this.mutationGroupBox.Location = new System.Drawing.Point(3, 158); 148 150 this.mutationGroupBox.Name = "mutationGroupBox"; … … 180 182 this.meanWeightChangeLabel.Location = new System.Drawing.Point(6, 22); 181 183 this.meanWeightChangeLabel.Name = "meanWeightChangeLabel"; 182 this.meanWeightChangeLabel.Size = new System.Drawing.Size(10 4, 13);184 this.meanWeightChangeLabel.Size = new System.Drawing.Size(106, 13); 183 185 this.meanWeightChangeLabel.TabIndex = 6; 184 this.meanWeightChangeLabel.Text = "Weight change ( nu):";186 this.meanWeightChangeLabel.Text = "Weight change (mu):"; 185 187 this.toolTip.SetToolTip(this.meanWeightChangeLabel, "The nu (mean) parameter for the normal distribution to sample the change in weigh" + 186 188 "t."); 187 189 // 188 // weightChange NuTextBox189 // 190 this.weightChange NuTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)191 | System.Windows.Forms.AnchorStyles.Right))); 192 this.weightChange NuTextBox.Location = new System.Drawing.Point(131, 19);193 this.weightChange NuTextBox.Name = "weightChangeNuTextBox";194 this.weightChange NuTextBox.Size = new System.Drawing.Size(162, 20);195 this.weightChange NuTextBox.TabIndex = 7;196 this.toolTip.SetToolTip(this.weightChange NuTextBox, "The nu (mean) parameter for the normal distribution to sample the change in weigh" +190 // weightChangeMuTextBox 191 // 192 this.weightChangeMuTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 193 | System.Windows.Forms.AnchorStyles.Right))); 194 this.weightChangeMuTextBox.Location = new System.Drawing.Point(131, 19); 195 this.weightChangeMuTextBox.Name = "weightChangeMuTextBox"; 196 this.weightChangeMuTextBox.Size = new System.Drawing.Size(162, 20); 197 this.weightChangeMuTextBox.TabIndex = 7; 198 this.toolTip.SetToolTip(this.weightChangeMuTextBox, "The mu (mean) parameter for the normal distribution to sample the change in weigh" + 197 199 "t."); 198 this.weightChange NuTextBox.TextChanged += new System.EventHandler(this.weightChangeNuTextBox_TextChanged);200 this.weightChangeMuTextBox.TextChanged += new System.EventHandler(this.weightChangeMuTextBox_TextChanged); 199 201 // 200 202 // VariableView … … 226 228 #endregion 227 229 228 private System.Windows.Forms.Label weight NuLabel;229 private System.Windows.Forms.TextBox weight NuTextBox;230 private System.Windows.Forms.Label weightMuLabel; 231 private System.Windows.Forms.TextBox weightMuTextBox; 230 232 protected System.Windows.Forms.GroupBox initializationGroupBox; 231 233 private System.Windows.Forms.Label weightSigmaLabel; … … 235 237 private System.Windows.Forms.TextBox weightChangeSigmaTextBox; 236 238 private System.Windows.Forms.Label meanWeightChangeLabel; 237 private System.Windows.Forms.TextBox weightChange NuTextBox;239 private System.Windows.Forms.TextBox weightChangeMuTextBox; 238 240 239 241 } -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/Symbols/VariableView.cs
r4068 r5275 57 57 protected override void SetEnabledStateOfControls() { 58 58 base.SetEnabledStateOfControls(); 59 weightNuTextBox.Enabled = Content != null; 59 weightMuTextBox.Enabled = Content != null; 60 weightMuTextBox.ReadOnly = ReadOnly; 60 61 weightSigmaTextBox.Enabled = Content != null; 61 weightChangeNuTextBox.Enabled = Content != null; 62 weightSigmaTextBox.ReadOnly = ReadOnly; 63 weightChangeMuTextBox.Enabled = Content != null; 64 weightChangeMuTextBox.ReadOnly = ReadOnly; 62 65 weightChangeSigmaTextBox.Enabled = Content != null; 66 weightChangeSigmaTextBox.ReadOnly = ReadOnly; 63 67 } 64 68 … … 70 74 71 75 #region control event handlers 72 private void weight NuTextBox_TextChanged(object sender, EventArgs e) {76 private void weightMuTextBox_TextChanged(object sender, EventArgs e) { 73 77 double nu; 74 if (double.TryParse(weight NuTextBox.Text, out nu)) {75 Content.Weight Nu = nu;76 errorProvider.SetError(weight NuTextBox, string.Empty);78 if (double.TryParse(weightMuTextBox.Text, out nu)) { 79 Content.WeightMu = nu; 80 errorProvider.SetError(weightMuTextBox, string.Empty); 77 81 } else { 78 errorProvider.SetError(weight NuTextBox, "Invalid value");82 errorProvider.SetError(weightMuTextBox, "Invalid value"); 79 83 } 80 84 } … … 89 93 } 90 94 91 private void weightChange NuTextBox_TextChanged(object sender, EventArgs e) {95 private void weightChangeMuTextBox_TextChanged(object sender, EventArgs e) { 92 96 double nu; 93 if (double.TryParse(weightChange NuTextBox.Text, out nu)) {94 Content.WeightManipulator Nu = nu;95 errorProvider.SetError(weightChange NuTextBox, string.Empty);97 if (double.TryParse(weightChangeMuTextBox.Text, out nu)) { 98 Content.WeightManipulatorMu = nu; 99 errorProvider.SetError(weightChangeMuTextBox, string.Empty); 96 100 } else { 97 errorProvider.SetError(weightChange NuTextBox, "Invalid value");101 errorProvider.SetError(weightChangeMuTextBox, "Invalid value"); 98 102 } 99 103 } … … 113 117 private void UpdateControl() { 114 118 if (Content == null) { 115 weight NuTextBox.Text = string.Empty;119 weightMuTextBox.Text = string.Empty; 116 120 weightSigmaTextBox.Text = string.Empty; 117 weight NuTextBox.Text = string.Empty;121 weightMuTextBox.Text = string.Empty; 118 122 weightChangeSigmaTextBox.Text = string.Empty; 119 123 } else { 120 weight NuTextBox.Text = Content.WeightNu.ToString();124 weightMuTextBox.Text = Content.WeightMu.ToString(); 121 125 weightSigmaTextBox.Text = Content.WeightSigma.ToString(); 122 weightChange NuTextBox.Text = Content.WeightManipulatorNu.ToString();126 weightChangeMuTextBox.Text = Content.WeightManipulatorMu.ToString(); 123 127 weightChangeSigmaTextBox.Text = Content.WeightManipulatorSigma.ToString(); 124 128 }
Note: See TracChangeset
for help on using the changeset viewer.