Changeset 7669 for branches/HeuristicLab.Hive.Azure/HeuristicLab.Analysis
- Timestamp:
- 03/28/12 15:47:26 (13 years ago)
- Location:
- branches/HeuristicLab.Hive.Azure
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive.Azure
- Property svn:ignore
-
old new 3 3 *.resharper 4 4 *.suo 5 *.user 5 6 *.vsp 6 7 Doxygen 8 FxCopResults.txt 7 9 Google.ProtocolBuffers-0.9.1.dll 8 10 HeuristicLab 3.3.5.1.ReSharper.user
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/HeuristicLab.Hive.Azure/HeuristicLab.Analysis
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Analysis merged: 7294,7297,7351,7416
- Property svn:mergeinfo changed
-
branches/HeuristicLab.Hive.Azure/HeuristicLab.Analysis/3.3/DataVisualization/DataRowVisualProperties.cs
r7270 r7669 38 38 Points, 39 39 Bars, 40 Histogram 40 Histogram, 41 StepLine 41 42 } 42 43 #endregion -
branches/HeuristicLab.Hive.Azure/HeuristicLab.Analysis/3.3/HeuristicLab.Analysis-3.3.csproj
r7215 r7669 99 99 </PropertyGroup> 100 100 <ItemGroup> 101 <Reference Include="ALGLIB-3. 1.0, Version=3.1.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL">102 <HintPath>..\..\bin\ALGLIB-3. 1.0.dll</HintPath>101 <Reference Include="ALGLIB-3.4.0, Version=3.4.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 102 <HintPath>..\..\bin\ALGLIB-3.4.0.dll</HintPath> 103 103 <Private>False</Private> 104 104 </Reference> -
branches/HeuristicLab.Hive.Azure/HeuristicLab.Analysis/3.3/MultidimensionalScaling/MultidimensionalScaling.cs
r7270 r7669 103 103 private static void StressFitness(double[] x, double[] fi, object obj) { 104 104 Info info = (obj as Info); 105 int idx = 0; 105 106 for (int i = 0; i < info.Coordinates.Rows; i++) { 106 double f = Stress(x, info.Dissimilarities[info.Row, i], info.Coordinates[i, 0], info.Coordinates[i, 1]); 107 if (i < info.Row) fi[i] = f; 108 else if (i > info.Row) fi[i - 1] = f; 107 if (i == info.Row) continue; 108 if (!double.IsNaN(info.Dissimilarities[info.Row, i])) 109 fi[idx++] = Stress(x, info.Dissimilarities[info.Row, i], info.Coordinates[i, 0], info.Coordinates[i, 1]); 110 else fi[idx++] = 0.0; 109 111 } 110 112 } … … 114 116 int idx = 0; 115 117 for (int i = 0; i < info.Coordinates.Rows; i++) { 116 if (i != info.Row) {117 118 119 120 double f = Stress(x, c, a, b);121 fi[idx] = f;118 if (i == info.Row) continue; 119 double c = info.Dissimilarities[info.Row, i]; 120 double a = info.Coordinates[i, 0]; 121 double b = info.Coordinates[i, 1]; 122 if (!double.IsNaN(c)) { 123 fi[idx] = Stress(x, c, a, b); ; 122 124 jac[idx, 0] = 2 * (x[0] - a) * (Math.Sqrt((a - x[0]) * (a - x[0]) + (b - x[1]) * (b - x[1])) - c) / Math.Sqrt((a - x[0]) * (a - x[0]) + (b - x[1]) * (b - x[1])); 123 125 jac[idx, 1] = 2 * (x[1] - b) * (Math.Sqrt((a - x[0]) * (a - x[0]) + (b - x[1]) * (b - x[1])) - c) / Math.Sqrt((a - x[0]) * (a - x[0]) + (b - x[1]) * (b - x[1])); 124 idx++; 126 } else { 127 fi[idx] = jac[idx, 0] = jac[idx, 1] = 0; 125 128 } 129 idx++; 126 130 } 127 131 } … … 153 157 for (int i = 0; i < dimension - 1; i++) { 154 158 for (int j = i + 1; j < dimension; j++) { 155 if (dissimilarities[i, j] != dissimilarities[j, i]) throw new ArgumentException("Dissimilarities is not a symmetric matrix.", "dissimilarities"); 156 if (dissimilarities[i, j] != 0) { 159 if (dissimilarities[i, j] != dissimilarities[j, i] && !(double.IsNaN(dissimilarities[i, j]) && double.IsNaN(dissimilarities[j, i]))) 160 throw new ArgumentException("Dissimilarities is not a symmetric matrix.", "dissimilarities"); 161 if (!double.IsNaN(dissimilarities[i, j])) { 157 162 stress += Stress(coordinates[i, 0], coordinates[i, 1], dissimilarities[i, j], coordinates[j, 0], coordinates[j, 1]); 158 163 normalization += (dissimilarities[i, j] * dissimilarities[i, j]); -
branches/HeuristicLab.Hive.Azure/HeuristicLab.Analysis/3.3/Plugin.cs.frame
r7270 r7669 28 28 [Plugin("HeuristicLab.Analysis", "3.3.6.$WCREV$")] 29 29 [PluginFile("HeuristicLab.Analysis-3.3.dll", PluginFileType.Assembly)] 30 [PluginDependency("HeuristicLab.ALGLIB", "3. 1")]30 [PluginDependency("HeuristicLab.ALGLIB", "3.4")] 31 31 [PluginDependency("HeuristicLab.Collections", "3.3")] 32 32 [PluginDependency("HeuristicLab.Common", "3.3")] -
branches/HeuristicLab.Hive.Azure/HeuristicLab.Analysis/3.3/ValueAnalysis/MinAverageMaxValueAnalyzer.cs
r7270 r7669 94 94 : base(original, cloner) { 95 95 resultsCollector = cloner.Clone(original.resultsCollector); 96 Initialize();96 RegisterEventHandlers(); 97 97 } 98 98 public override IDeepCloneable Clone(Cloner cloner) { … … 147 147 #endregion 148 148 149 Initialize();149 RegisterEventHandlers(); 150 150 } 151 151 152 152 [StorableHook(HookType.AfterDeserialization)] 153 private void Initialize() { 153 private void AfterDeserialization() { 154 RegisterEventHandlers(); 155 } 156 157 private void RegisterEventHandlers() { 154 158 ValueParameter.DepthChanged += new EventHandler(ValueParameter_DepthChanged); 155 159 CollectMinValueInResultsParameter.ValueChanged += new EventHandler(CollectMinValueInResultsParameter_ValueChanged);
Note: See TracChangeset
for help on using the changeset viewer.