SampleApp.MainForm.btnRunAnalysis_Click C# (CSharp) Method

btnRunAnalysis_Click() private method

private btnRunAnalysis_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void btnRunAnalysis_Click(object sender, EventArgs e)
        {
            // Retrieve the input data as a double[,] matrix
            double[][] data = input.Transpose().ToDouble();


            // Create a new Independent Component Analysis
            ica = new IndependentComponentAnalysis(AnalysisMethod.Standardize)
            {
                Overwrite = true 
            };

            // Compute the analysis
            var demixer = ica.Learn(data);


            // Separate the input signals
            demix = demixer.Transform(data).Transpose().ToSingle();


            btnSource1.Enabled = true;
            btnSource2.Enabled = true;
        }
MainForm