Exemple #1
0
        private static string[] GetValues(
            Author author,
            double averageExperience,
            double standardDeviation
            )
        {
            var startYear         = author.StartOfActivity;
            var endYear           = author.LastYearOfActivity;
            var yearsOfExperience = author.YearsOfExperience;

            return(new[]
            {
                author.Id.ToString(),
                author.HIndex.ToString(),
                //author.GIndex.ToString(),
                $"{author.AuthorRank(startYear, endYear):F}",
                //$"{author.AuthorHotRank(startYear, endYear):F}",
                yearsOfExperience.ToString(),
                (2011 - endYear).ToString(),
                author.NumberOfPublication.ToString(),
                //$"{(double)author.NumberOfPublication / yearsOfExperience:F}",
                author.NumberOfCoauthers.ToString(CultureInfo.InvariantCulture),
                author.NumberOfUniqueCoauthers.ToString(CultureInfo.InvariantCulture),
                //author.NumberOfCitationsInYear(2000).ToString(CultureInfo.InvariantCulture),
                //author.NumberOfCitationsInYear(2001).ToString(CultureInfo.InvariantCulture),
                //author.NumberOfCitationsInYear(2002).ToString(CultureInfo.InvariantCulture),
                //author.NumberOfCitationsInYear(2003).ToString(CultureInfo.InvariantCulture),
                //author.NumberOfCitationsInYear(2004).ToString(CultureInfo.InvariantCulture),
                //author.NumberOfCitationsInYear(2005).ToString(CultureInfo.InvariantCulture),
                //author.NumberOfCitationsInYear(2006).ToString(CultureInfo.InvariantCulture),
                //author.NumberOfCitationsInYear(2007).ToString(CultureInfo.InvariantCulture),
                //author.NumberOfCitationsInYear(2008).ToString(CultureInfo.InvariantCulture),
                author.NumberOfCitationsInYear(2009).ToString(CultureInfo.InvariantCulture),
                author.NumberOfCitationsInYear(2010).ToString(CultureInfo.InvariantCulture),
                author.NumberOfCitationsInYear(2011).ToString(CultureInfo.InvariantCulture),
                // Standardize experience = (X - Mu) / Sigma
                //(
                //    (author.YearsOfExperience - averageExperience) / standardDeviation
                //).ToString(CultureInfo.InvariantCulture),
                //author.TotalFirstYearCitationsUntil(2011).ToString(CultureInfo.InvariantCulture),
                author.TotalCitationsUntil(2011).ToString(CultureInfo.InvariantCulture),
                author.NumberOfCitationsOn2016.ToString(CultureInfo.InvariantCulture)
            });
        }