File: example.html

package info (click to toggle)
node-configurable-http-proxy 4.5.3%2B~cs15.2.4-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 3,580 kB
  • sloc: javascript: 10,340; sh: 27; makefile: 22
file content (22 lines) | stat: -rw-r--r-- 462 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<html>
<head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <title>TDigest example</title>
    <script src="dist/tdigest.js"></script>
    <script>

    var td = new this.tdigest.TDigest();
    for (var i=0; i < 1000000; i++) {
        td.push(Math.random());
    };
    td.compress()

    </script>
</head>
<body>
  <pre>
TDigest of 1M samples uniform in [0..1]:
    
<script>document.write(td.summary())</script>
  </pre>
</body>