Пример #1
0
 public RespondentAnswer Average()
 {
     var answer =
         new RespondentAnswer(_respondents)
             {
                 CompareResultsWithOthersWeight = _respondents.Average(x => x.CompareResultsWithOthersWeight),
                 FetchDataFromWatchWeight = _respondents.Average(x => x.FetchDataFromWatchWeight),
                 RegisterRunDataWeight = _respondents.Average(x => x.RegisterRunDataWeight),
                 RegisterShoeDataWeight = _respondents.Average(x => x.RegisterShoeDataWeight),
                 RunCalendarWeight = _respondents.Average(x => x.RunCalendarWeight),
                 StatisticsBestRunsWeight = _respondents.Average(x => x.StatisticsBestRunsWeight),
                 TrainerWeight = _respondents.Average(x => x.TrainerWeight),
                 VisualWeightlossWeight = _respondents.Average(x => x.VisualWeightlossWeight)
             };
     return answer;
 }
Пример #2
0
 public RespondentAnswer Difference(RespondentAnswer other)
 {
     var diff =
         new RespondentAnswer
             {
                 CompareResultsWithOthersWeight =
                     CompareResultsWithOthersWeight - other.CompareResultsWithOthersWeight,
                 FetchDataFromWatchWeight = FetchDataFromWatchWeight - other.FetchDataFromWatchWeight,
                 RegisterRunDataWeight = RegisterRunDataWeight - other.RegisterRunDataWeight,
                 RegisterShoeDataWeight = RegisterShoeDataWeight - other.RegisterShoeDataWeight,
                 RunCalendarWeight = RunCalendarWeight - other.RunCalendarWeight,
                 StatisticsBestRunsWeight = StatisticsBestRunsWeight - other.StatisticsBestRunsWeight,
                 TrainerWeight = TrainerWeight - other.TrainerWeight,
                 VisualWeightlossWeight = VisualWeightlossWeight - other.VisualWeightlossWeight
             };
     return diff;
 }