Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(512)

Side by Side Diff: tracing/tracing/base/math/running_statistics.html

Issue 2771723003: [tracing] Move math utilities from base into their own subdirectory (attempt 2) (Closed)
Patch Set: rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright 2016 The Chromium Authors. All rights reserved. 3 Copyright 2016 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 7
8 <link rel="import" href="/tracing/base/base.html"> 8 <link rel="import" href="/tracing/base/base.html">
9 9
10 <script> 10 <script>
11 'use strict'; 11 'use strict';
12 12
13 tr.exportTo('tr.b', function() { 13 tr.exportTo('tr.b.math', function() {
14 /** 14 /**
15 * An object of this class computes basic statistics online in O(1). 15 * An object of this class computes basic statistics online in O(1).
16 * Usage: 16 * Usage:
17 * 1. Create an instance. 17 * 1. Create an instance.
18 * 2. Add numbers using the |add| method. 18 * 2. Add numbers using the |add| method.
19 * 3. Query statistics. 19 * 3. Query statistics.
20 * 4. Repeat from step 2. 20 * 4. Repeat from step 2.
21 */ 21 */
22 class RunningStatistics { 22 class RunningStatistics {
23 constructor() { 23 constructor() {
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 ] = dict; 171 ] = dict;
172 return result; 172 return result;
173 } 173 }
174 } 174 }
175 175
176 return { 176 return {
177 RunningStatistics, 177 RunningStatistics,
178 }; 178 };
179 }); 179 });
180 </script> 180 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/base/math/rect_test.html ('k') | tracing/tracing/base/math/running_statistics_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698