Ken Sedgwick
d90ca280ef
fix: initialize ReservoirSampler::wsum to silence build warning
...
GCC's deeper inlining at -O2 detects that wsum may be used uninitialized when
ReservoirSampler::add() is inlined into JitRebalancer. Debug builds (-Og) don't
trigger this because GCC doesn't inline deeply enough. The value is overwritten
on the first add() call, so this is purely to satisfy the compiler.
2026-03-04 11:10:33 -08:00
Ken Sedgwick
39a09c2908
Use BacktraceException for appropriate (most) exceptions
2024-08-19 15:04:30 -07:00
ZmnSCPxj jxPCSnmZ
a6691ea99d
Stats/WeightedMedian.hpp: Add missing include for std::plus template.
2020-11-06 11:03:57 +00:00
ZmnSCPxj jxPCSnmZ
0a912abb91
Util/vector_emplace_back.hpp: Utility function to wrap around missing operations in std::vector<bool>.
2020-11-06 09:22:46 +00:00
ZmnSCPxj jxPCSnmZ
a8fbf9ae8a
Stats/ReservoirSampler.hpp: Reservoir sampler implementation.
2020-10-01 16:51:59 +08:00
ZmnSCPxj jxPCSnmZ
116714c66b
Stats/WeightedMedian.hpp: Correct different types for sample and weight.
2020-09-30 11:40:32 +08:00
ZmnSCPxj jxPCSnmZ
2dc8160f9e
Stats/WeightedMedian.hpp: Weighted median.
2020-09-30 10:51:26 +08:00
ZmnSCPxj jxPCSnmZ
f6a7e74152
Stats/RunningMean.hpp: Add memo pattern.
2020-09-12 15:43:01 +08:00
ZmnSCPxj jxPCSnmZ
5dd3d095ba
Stats/RunningMean.cpp: Object for storing statistics.
2020-08-31 11:20:54 +08:00