telemetry.value.list_of_scalar_values | index telemetry/value/list_of_scalar_values.py

`# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.`

Modules
`` |  |
math telemetry.value.none_values | numbers telemetry.value.summarizable | telemetry.value |

Classes
`` |  | telemetry.value.summarizable.SummarizableValue(telemetry.value.Value) ListOfScalarValues
class ListOfScalarValues(telemetry.value.summarizable.SummarizableValue)
`` | `ListOfScalarValues represents a list of numbers. By default, std is the standard deviation of all numbers in the list. Std can also be specified in the constructor if the numbers are not from the same population.`
| Method resolution order: ListOfScalarValues telemetry.value.summarizable.SummarizableValue telemetry.value.Value __builtin__.object Methods defined here: AsDict(self) GetBuildbotDataType(self, output_context) GetBuildbotValue(self) GetRepresentativeNumber(self) GetRepresentativeString(self) IsMergableWith(self, that) __init__(self, page, name, units, values, important=True, description=None, tir_label=None, none_value_reason=None, std=None, same_page_merge_policy='concatenate', improvement_direction=None) __repr__(self) Class methods defined here: MergeLikeValuesFromDifferentPages(cls, values) from __builtin__.type MergeLikeValuesFromSamePage(cls, values) from __builtin__.type Static methods defined here: FromDict(value_dict, page_dict) GetJSONTypeName() Data descriptors defined here: std variance Methods inherited from telemetry.value.summarizable.SummarizableValue: AsDictWithoutBaseClassEntries(self) Data descriptors inherited from telemetry.value.summarizable.SummarizableValue: improvement_direction Methods inherited from telemetry.value.Value: GetChartAndTraceNameForComputedSummaryResult(self, trace_tag) GetChartAndTraceNameForPerPageResult(self) __eq__(self, other) __hash__(self) Static methods inherited from telemetry.value.Value: GetConstructorKwArgs(value_dict, page_dict) `Produces constructor arguments from a value dict and a page dict. Takes a dict parsed from JSON and an index of pages and recovers the keyword arguments to be passed to the constructor for deserializing the dict. value_dict: a dictionary produced by AsDict() on a value subclass. page_dict: a dictionary mapping IDs to page objects.` ListOfValuesFromListOfDicts(value_dicts, page_dict) `Takes a list of value dicts to values. Given a list of value dicts produced by AsDict, this method deserializes the dicts given a dict mapping page IDs to pages. This method performs memoization for deserializing a list of values efficiently, where FromDict is meant to handle one-offs. values: a list of value dicts produced by AsDict() on a value subclass. page_dict: a dictionary mapping IDs to page objects.` Data descriptors inherited from telemetry.value.Value: __dict__ `dictionary for instance variables (if defined)` __weakref__ `list of weak references to the object (if defined)` name_suffix `Returns the string after a . in the name, or the full name otherwise.`

Functions
`` |  | PooledStandardDeviation(list_of_samples, list_of_variances=None) `Compute standard deviation for a list of samples. See: https://en.wikipedia.org/wiki/Pooled_variance for the formula. Args: list_of_samples: a list of lists, each is a list of numbers. list_of_variances: a list of numbers, the i-th element is the variance of the i-th sample in list_of_samples. If this is None, we use Variance(sample) to get the variance of the i-th sample.` StandardDeviation(sample) `Compute standard deviation for a list of numbers. Args: sample: a list of numbers.` Variance(sample) `Compute the population variance. Args: sample: a list of numbers.`