Exemplo n.º 1
0
        private static List <Andi.IndexNumber> Ranking(double[] data)
        {
            List <Andi.IndexNumber> datasementara = new List <Andi.IndexNumber>();

            for (int i = 0; i < data.Length; i++)
            {
                Andi.IndexNumber var = new Andi.IndexNumber();

                var.Index = i;
                var.Value = data[i];
                datasementara.Add(var);
            }

            return(datasementara.OrderBy(x => x.Value).ToList());
        }