function compileResponseRatePoints(points){
  var responseTime = points[0].responseTime;
  var averageScoreArray = [];
  for (let p of points){
    averageScoreArray.push(p.score);
  }
  var averageScore = averageArray(averageScoreArray).toFixed(2);
  return {x:responseTime,y:averageScore};
}
// Returns array with average score for given response time cohort
Returns array with average score for given response time cohort
Returns array with average score for given response time cohort
function compileResponseRatePoints(points){
  var responseTime = points[0].responseTime;
  var averageScoreArray = [];
  for (let p of points){
    averageScoreArray.push(p.score);
  }
  var averageScore = averageArray(averageScoreArray).toFixed(2);
  return {x:responseTime,y:averageScore};
}
function compileResponseRatePoints ( points ) { var responseTime = points [ 0 ] . responseTime ; var averageScoreArray = [ ] ; for ( let p of points ) { averageScoreArray . push ( p . score ) ; } var averageScore = averageArray ( averageScoreArray ) . toFixed ( 2 ) ; return { x : responseTime , y : averageScore } ; }
Returns array with average score for given response time cohort
Returns array with average score for given response time cohort