File:Punct.png
From Wikipedia, the free encyclopedia
Size of this preview: 800 × 246 pixels. Other resolutions: 320 × 98 pixels | 1,340 × 412 pixels.
Original file (1,340 × 412 pixels, file size: 23 KB, MIME type: image/png)
This is a file from the Wikimedia Commons. Information from its description page there is shown below. Commons is a freely licensed media file repository. You can help. |
Summary
DescriptionPunct.png |
English: Illustration of the puncturing procedure.
Python example: import numpy as np
def puncturing(message, punct_vec):
shift = 0
N = len(punct_vec)
punctured = []
for idx, item in enumerate(message):
if punct_vec[idx-shift*N] == 1:
punctured.append(item)
if idx%N == 0:
shift = shift + 1
return np.array(punctured)
def depuncturing(punctured, punct_vec, shouldbe):
shift = 0
shift2 = 0
N = len(punct_vec)
depunctured = np.zeros((shouldbe,))
for idx, item in enumerate(depunctured):
if punct_vec[idx - shift*N] == 1:
depunctured[idx] = float(punctured[idx-shift2])
else:
shift2 = shift2 + 1
if idx%N == 0:
shift = shift + 1;
return depunctured
message = np.array([1, 2, 3, 4, 5, 6, 7, 8])
punct_vec = np.array([1, 1, 0])
punctured = puncturing(message, punct_vec)
print(punctured)
depunctured = depuncturing(punctured, punct_vec, len(message))
print(depunctured)
|
Date | |
Source | Own work |
Author | Kirlf |
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Items portrayed in this file
depicts
16 November 2018
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 04:57, 6 February 2019 | 1,340 × 412 (23 KB) | Kirlf | Parity bit are punctured only. | |
10:07, 1 February 2019 | 1,146 × 342 (20 KB) | Kirlf | User created page with UploadWizard |
File usage
The following pages on the English Wikipedia use this file (pages on other projects are not listed):
Global file usage
The following other wikis use this file:
- Usage on cs.wikipedia.org
Metadata
This file contains additional information, probably added from the digital camera or scanner used to create or digitize it.
If the file has been modified from its original state, some details may not fully reflect the modified file.
Horizontal resolution | 37.79 dpc |
---|---|
Vertical resolution | 37.79 dpc |
Retrieved from "https://en.wikipedia.org/wiki/File:Punct.png"