Chromatic dispersion and line width phase noise
[4yp.git] / normalizeEnergy.m
diff --git a/normalizeEnergy.m b/normalizeEnergy.m
new file mode 100644 (file)
index 0000000..8c185dd
--- /dev/null
@@ -0,0 +1,4 @@
+function y = normalizeEnergy(x, numSymbs, e)
+  energy = sum(abs(x) .^ 2) / numSymbs;
+  y = x * sqrt(e / energy);
+end