Download Jar. Libraryless. Click here for Pure Java version (6777L/48K).
1 | !7 |
2 | |
3 | p-exp { |
4 | new RollingAverage a; |
5 | a.windowSize = 2; |
6 | assertEqualsVerbose(0.0, a!); |
7 | a.add(5); |
8 | assertEqualsVerbose(5.0, a!); |
9 | a.add(10); |
10 | assertEqualsVerbose(7.5, a!); |
11 | a.add(15); |
12 | assertEqualsVerbose(12.5, a!); |
13 | } |
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019130 |
Snippet name: | Test RollingAverage (OK) |
Eternal ID of this version: | #1019130/2 |
Text MD5: | 1b05c99499e1d66d060e337afbd12467 |
Transpilation MD5: | a1649c1d1ef74552dd4b52f93c4bc0f8 |
Author: | stefan |
Category: | javax / math |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-24 13:16:09 |
Source code size: | 236 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 510 / 1239 |
Version history: | 1 change(s) |
Referenced in: | [show references] |