Index: trunk/sources/HeuristicLab.DataPreprocessing/3.4/Implementations/ManipulationLogic.cs
===================================================================
--- trunk/sources/HeuristicLab.DataPreprocessing/3.4/Implementations/ManipulationLogic.cs	(revision 11114)
+++ trunk/sources/HeuristicLab.DataPreprocessing/3.4/Implementations/ManipulationLogic.cs	(revision 11156)
@@ -54,8 +54,8 @@
       preprocessingData.InTransaction(() => {
         foreach (var column in cells) {
-          if (preprocessingData.IsType<double>(column.Key)) {
+          if (preprocessingData.VariableHasType<double>(column.Key)) {
             double average = statisticsLogic.GetAverage(column.Key, considerSelection);
             ReplaceIndicesByValue<double>(column.Key, column.Value, average);
-          } else if (preprocessingData.IsType<DateTime>(column.Key)) {
+          } else if (preprocessingData.VariableHasType<DateTime>(column.Key)) {
             DateTime average = statisticsLogic.GetAverageDateTime(column.Key, considerSelection);
             ReplaceIndicesByValue<DateTime>(column.Key, column.Value, average);
@@ -68,8 +68,8 @@
       preprocessingData.InTransaction(() => {
         foreach (var column in cells) {
-          if (preprocessingData.IsType<double>(column.Key)) {
+          if (preprocessingData.VariableHasType<double>(column.Key)) {
             double median = statisticsLogic.GetMedian(column.Key, considerSelection);
             ReplaceIndicesByValue<double>(column.Key, column.Value, median);
-          } else if (preprocessingData.IsType<DateTime>(column.Key)) {
+          } else if (preprocessingData.VariableHasType<DateTime>(column.Key)) {
             DateTime median = statisticsLogic.GetMedianDateTime(column.Key, considerSelection);
             ReplaceIndicesByValue<DateTime>(column.Key, column.Value, median);
@@ -84,5 +84,5 @@
 
         foreach (var column in cells) {
-          if (preprocessingData.IsType<double>(column.Key)) {
+          if (preprocessingData.VariableHasType<double>(column.Key)) {
             double max = statisticsLogic.GetMax<double>(column.Key, considerSelection);
             double min = statisticsLogic.GetMin<double>(column.Key, considerSelection);
@@ -92,5 +92,5 @@
               preprocessingData.SetCell<double>(column.Key, index, rand);
             }
-          } else if (preprocessingData.IsType<DateTime>(column.Key)) {
+          } else if (preprocessingData.VariableHasType<DateTime>(column.Key)) {
             DateTime min = statisticsLogic.GetMin<DateTime>(column.Key, considerSelection);
             DateTime max = statisticsLogic.GetMax<DateTime>(column.Key, considerSelection);
@@ -109,7 +109,7 @@
         foreach (var column in cells) {
           int countValues = 0;
-          if (preprocessingData.IsType<double>(column.Key)) {
+          if (preprocessingData.VariableHasType<double>(column.Key)) {
             countValues = preprocessingData.GetValues<double>(column.Key).Count();
-          } else if (preprocessingData.IsType<DateTime>(column.Key)) {
+          } else if (preprocessingData.VariableHasType<DateTime>(column.Key)) {
             countValues = preprocessingData.GetValues<DateTime>(column.Key).Count();
           }
@@ -170,5 +170,5 @@
       int valuesToInterpolate = nextIndex - prevIndex;
 
-      if (preprocessingData.IsType<double>(column.Key)) {
+      if (preprocessingData.VariableHasType<double>(column.Key)) {
         double prev = preprocessingData.GetCell<double>(column.Key, prevIndex);
         double next = preprocessingData.GetCell<double>(column.Key, nextIndex);
@@ -179,5 +179,5 @@
           preprocessingData.SetCell<double>(column.Key, i, interpolated);
         }
-      } else if (preprocessingData.IsType<DateTime>(column.Key)) {
+      } else if (preprocessingData.VariableHasType<DateTime>(column.Key)) {
         DateTime prev = preprocessingData.GetCell<DateTime>(column.Key, prevIndex);
         DateTime next = preprocessingData.GetCell<DateTime>(column.Key, nextIndex);
@@ -212,9 +212,9 @@
       preprocessingData.InTransaction(() => {
         foreach (var column in cells) {
-          if (preprocessingData.IsType<double>(column.Key)) {
+          if (preprocessingData.VariableHasType<double>(column.Key)) {
             ReplaceIndicesByValue<double>(column.Key, column.Value, statisticsLogic.GetMostCommonValue<double>(column.Key, considerSelection));
-          } else if (preprocessingData.IsType<string>(column.Key)) {
+          } else if (preprocessingData.VariableHasType<string>(column.Key)) {
             ReplaceIndicesByValue<string>(column.Key, column.Value, statisticsLogic.GetMostCommonValue<string>(column.Key, considerSelection));
-          } else if (preprocessingData.IsType<DateTime>(column.Key)) {
+          } else if (preprocessingData.VariableHasType<DateTime>(column.Key)) {
             ReplaceIndicesByValue<DateTime>(column.Key, column.Value, statisticsLogic.GetMostCommonValue<DateTime>(column.Key, considerSelection));
           } else {
@@ -265,9 +265,9 @@
       preprocessingData.InTransaction(() => {
         for (int i = 0; i < preprocessingData.Columns; ++i) {
-          if (preprocessingData.IsType<double>(i)) {
+          if (preprocessingData.VariableHasType<double>(i)) {
             reOrderToIndices<double>(i, indices);
-          } else if (preprocessingData.IsType<string>(i)) {
+          } else if (preprocessingData.VariableHasType<string>(i)) {
             reOrderToIndices<string>(i, indices);
-          } else if (preprocessingData.IsType<DateTime>(i)) {
+          } else if (preprocessingData.VariableHasType<DateTime>(i)) {
             reOrderToIndices<DateTime>(i, indices);
           }
@@ -279,9 +279,9 @@
       preprocessingData.InTransaction(() => {
         for (int i = 0; i < preprocessingData.Columns; ++i) {
-          if (preprocessingData.IsType<double>(i)) {
+          if (preprocessingData.VariableHasType<double>(i)) {
             ShuffleToIndices<double>(i, indices);
-          } else if (preprocessingData.IsType<string>(i)) {
+          } else if (preprocessingData.VariableHasType<string>(i)) {
             ShuffleToIndices<string>(i, indices);
-          } else if (preprocessingData.IsType<DateTime>(i)) {
+          } else if (preprocessingData.VariableHasType<DateTime>(i)) {
             ShuffleToIndices<DateTime>(i, indices);
           }
@@ -360,5 +360,5 @@
       List<int> columns = new List<int>();
       for (int i = 0; i < preprocessingData.Columns; ++i) {
-        if (preprocessingData.IsType<double>(i) || preprocessingData.IsType<DateTime>(i)) {
+        if (preprocessingData.VariableHasType<double>(i) || preprocessingData.VariableHasType<DateTime>(i)) {
           double columnVariance = statisticsLogic.GetVariance(i);
           if (columnVariance < variance) {
