tools/fuchsia/comparative_tester/generate_perf_report.py
def GenStats(corpus: List[float]) -> Tuple[float, float, float]:
  """Generates statistics from a list of values

  Args:
    corpus (List[float]): The set of data to generate statistics for.

  Returns:
    Tuple[float, float, float]: The mean, standard deviation, and coefficient of
        variation for the given sample data.
  """
  avg = sum(corpus) / len(corpus)
  adjusted_sum = 0.0
  for item in corpus:
    adjusted = item - avg
    adjusted_sum += adjusted * adjusted

  dev = math.sqrt(adjusted_sum / len(corpus))
  cv = dev / avg
  return avg, dev, cv
Generates statistics from a list of values

  Args:
    corpus (List[float]): The set of data to generate statistics for.

  Returns:
    Tuple[float, float, float]: The mean, standard deviation, and coefficient of
        variation for the given sample data.
  
Generates statistics from a list of values
Generates statistics from a list of values
def GenStats(corpus: List[float]) -> Tuple[float, float, float]:
  avg = sum(corpus) / len(corpus)
  adjusted_sum = 0.0
  for item in corpus:
    adjusted = item - avg
    adjusted_sum += adjusted * adjusted
  dev = math.sqrt(adjusted_sum / len(corpus))
  cv = dev / avg
  return avg, dev, cv
def GenStats ( corpus : List [ float ] ) -> Tuple [ float , float , float ] : avg = sum ( corpus ) / len ( corpus ) adjusted_sum = 0.0 for item in corpus : adjusted = item - avg adjusted_sum += adjusted * adjusted dev = math . sqrt ( adjusted_sum / len ( corpus ) ) cv = dev / avg return avg , dev , cv
Generates statistics from a list of values
Generates statistics from a list of values
"""Generates statistics from a list of values

  Args:
    corpus (List[float]): The set of data to generate statistics for.

  Returns:
    Tuple[float, float, float]: The mean, standard deviation, and coefficient of
        variation for the given sample data.
  """
The mean, standard deviation, and coefficient of
variation for the given sample data.
The mean standard deviation and coefficient of variation for the given sample data .
Tuple[float, float, float]
corpus
List[float]
The set of data to generate statistics for.
The set of data to generate statistics for .