Commit graph

32 commits

Author SHA1 Message Date
d5abbb4762 Support random::uniform_from with initializer_list 2025-05-14 22:52:47 +03:00
20f3bef6bd Add random::poisson distribution 2025-01-12 20:05:47 +03:00
c59b28e13f Rename 'geom' library to 'math' 2024-12-10 20:22:59 +03:00
c350c8f911 Fix random int generation 2024-08-16 18:13:59 +03:00
752593a589 Fix random::normal_distribution: actually use mean & stddev instead of always generating N(0,1) 2024-02-05 13:32:35 +03:00
470b7a0757 Add TODO to reimplement weighted distribution using Vose's alias algorithm 2024-01-26 13:29:04 +03:00
535627f962 Make random::generator::min/max constexpr 2023-08-22 20:28:44 +03:00
85d7a0ca33 Huge refactor: use util::exception everywhere instead of std exceptions 2023-08-06 18:33:07 +03:00
9e65c02541 Make random::uniform_from work with raw arrays 2023-07-08 11:17:28 +03:00
f824fd6612 Add random generator serialization 2023-05-29 13:04:58 +03:00
3bfe867cc0 Allow random::weighted_distribution to release it's weights array 2023-04-02 11:56:02 +03:00
d824159c2f Fix random::uniform() for integral types 2023-03-20 13:04:53 +03:00
d90317576c Add exponential random distribution 2023-02-24 22:57:03 +03:00
e304b09f9f Fix random::uniform_from to work with rvalue containers and return types 2023-02-08 23:56:23 +03:00
ed1764ffea Don't rely on [] operator in random::uniform_from 2023-02-05 00:33:44 +03:00
11962abf8f Add random::weighted_distribution default constructor 2022-07-07 15:09:20 +03:00
abb95f87ae Add random::uniform<bool>(RNG) 2022-05-19 16:54:22 +03:00
e4a1ede2d2 Add random weighted distribution 2022-05-07 18:44:30 +03:00
02382155a7 Add random::uniform_from(container) 2022-02-09 19:34:37 +03:00
8985436906 Add random::uniform(rng) that returns [0, 1] 2021-08-19 20:41:36 +03:00
a95182dc60 Add random::uniform(box) 2021-07-23 11:41:21 +03:00
824a15c921 Add random::uniform_angle 2021-07-23 10:13:52 +03:00
e87c4508fc Add random::uniform helper function 2021-03-07 11:54:11 +03:00
684cfe92b9 Only create random::generator from random::device 2021-02-19 13:23:59 +03:00
b6aa09bffe Rename random::random_device -> random::device 2021-02-15 12:24:43 +03:00
7ac4e3eb9b Fix normal_distribution bug 2021-01-23 21:33:45 +03:00
f0611657ac Generate empty source file for libraries with no sources 2021-01-18 18:10:35 +03:00
e7cac4a618 Clang compilation fixes 2021-01-18 18:01:03 +03:00
077a95e78b Add hemispherical random distributions 2020-12-10 10:39:04 +03:00
3ce7f05adf Fix random::uniform_ball result type 2020-12-10 10:38:42 +03:00
0a0398807f Remove confusing random::generator constructor 2020-12-10 10:37:15 +03:00
1e8df117cf Move random generation to a separate library 2020-12-09 23:53:36 +03:00