Accord.Tests.Statistics.IndependentComponentAnalysisTest.LoadData C# (CSharp) Méthode

LoadData() private static méthode

private static LoadData ( ) : ].double[
Résultat ].double[
        private static double[,] LoadData()
        {
            int counter = 0;
            int nchans = 24;
            int nsamps = 20001;
            double[,] data = new double[nsamps, nchans];
            using (StreamReader reader = new StreamReader(new MemoryStream(Resources.ica_data)))
            {
                string line;
                while ((line = reader.ReadLine()) != null)
                {
                    Regex r = new Regex("\\s+");
                    var nums = r.Split(line);
                    for (int i = 1; i < nums.Length; i++)
                    {
                        data[i - 1, counter] = double.Parse(nums[i], NumberStyles.Float | NumberStyles.AllowTrailingSign | NumberStyles.AllowThousands);
                    }
                    ++counter;
                }
            }

            return data;
        }