예제 #1
0
 protected override void FeatureCorrelation_CalculationFinished(object sender, AbstractFeatureCorrelationCalculator.CorrelationCalculationFinishedArgs e)
 {
     if (InvokeRequired)
     {
         Invoke(new AbstractFeatureCorrelationCalculator.CorrelationCalculationFinishedHandler(FeatureCorrelation_CalculationFinished), sender, e);
     }
     else
     {
         correlationTimeframCache.SetTimeframeCorrelation(e.Calculcator, e.Partition, e.Variable, e.Correlation);
         var columnNames = Enumerable.Range(0, e.Correlation.GetLength(1)).Select(x => x.ToString());
         var correlation = new DoubleMatrix(e.Correlation, columnNames, Content.Dataset.DoubleVariables);
         UpdateDataView(correlation);
     }
 }
 protected abstract void FeatureCorrelation_CalculationFinished(object sender,
                                                                AbstractFeatureCorrelationCalculator.CorrelationCalculationFinishedArgs e);
예제 #3
0
        protected override void FeatureCorrelation_CalculationFinished(object sender, AbstractFeatureCorrelationCalculator.CorrelationCalculationFinishedArgs e)
        {
            if (InvokeRequired)
            {
                Invoke(new AbstractFeatureCorrelationCalculator.CorrelationCalculationFinishedHandler(FeatureCorrelation_CalculationFinished), sender, e);
                return;
            }
            correlationCache.SetCorrelation(e.Calculcator, e.Partition, e.IgnoreMissingValues, e.Correlation);

            var correlation = new DoubleMatrix(e.Correlation, Content.Dataset.DoubleVariables, Content.Dataset.DoubleVariables);

            UpdateDataView(correlation);
        }