Libraryless. Click here for Pure Java version (10095L/55K).
1 | static <A extends Number> Average multiSetAverage(MultiSet<A> ms) { |
2 | new Average a; |
3 | for (key : keys(ms)) |
4 | a.add(toDouble(key), ms.get(key)); |
5 | ret a; |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): elmgxqgtpvxh, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1036348 |
Snippet name: | multiSetAverage |
Eternal ID of this version: | #1036348/6 |
Text MD5: | f2e1a1ca45bf5f372791c622599cd0e4 |
Transpilation MD5: | a4716abfc5ffa0724773226a1c691bac |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-11-21 20:45:18 |
Source code size: | 164 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 129 / 208 |
Version history: | 5 change(s) |
Referenced in: | [show references] |