示例#1
0
        public async Task <double> GetAverageFriendsPerUser(string datasetId)
        {
            var data = await _datasetRepository.GetFriendsCountPerUserAsync(datasetId);

            return(data.Values.Sum() / (double)data.Count);
        }