From 72e5b2240aefbc737984d4545bb80a01031c01fe Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Fri, 13 Feb 2026 12:47:55 +0100 Subject: [PATCH] renamed PolarCodeConst0 to BhattacharyyaFreezer --- README.md | 2 +- polar_freezer.hh | 2 +- tests/polar_regression_test.cc | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d954223..44bfac6 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ Encoder for [augmented Hadamard codes](https://en.wikipedia.org/wiki/Hadamard_co Bit freezers for the construction of [polar codes](https://en.wikipedia.org/wiki/Polar_code_(coding_theory)). * PolarFreezer: Constructs code for a given erasure probability without the need for storing nor sorting of erasure probabilities for the virtual channels. -* PolarCodeConst0: Constructs code by choosing the K best virtual channels computed from a given erasure probability. +* BhattacharyyaFreezer: Constructs code by choosing the K best virtual channels computed from a given erasure probability. ### [polar_sequence.hh](polar_sequence.hh) diff --git a/polar_freezer.hh b/polar_freezer.hh index 70b76f6..9d91f19 100644 --- a/polar_freezer.hh +++ b/polar_freezer.hh @@ -43,7 +43,7 @@ public: }; template -class PolarCodeConst0 +class BhattacharyyaFreezer { static void inform_bit(uint32_t *bits, int idx) { diff --git a/tests/polar_regression_test.cc b/tests/polar_regression_test.cc index c006bec..faf4e8f 100644 --- a/tests/polar_regression_test.cc +++ b/tests/polar_regression_test.cc @@ -50,8 +50,8 @@ int main() std::cerr << "better SNR: " << better_SNR << std::endl; double probability = std::exp(-pow(10.0, better_SNR / 10)); if (1) { - auto freeze = new CODE::PolarCodeConst0; - std::cerr << "sizeof(PolarCodeConst0) = " << sizeof(CODE::PolarCodeConst0) << std::endl; + auto freeze = new CODE::BhattacharyyaFreezer; + std::cerr << "sizeof(BhattacharyyaFreezer) = " << sizeof(CODE::BhattacharyyaFreezer) << std::endl; (*freeze)(frozen, M, K, probability); delete freeze; } else {