Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Write from dictionary to excel
Post: RE: Write from dictionary to excel
(Oct-10-2022, 10:18 PM)Am1n3 Wrote: Hi divon,
The answer to your request by using df.to_excel() method, which creates the excel file then writes your dataframe into it,
import numpy as np
import pan... |
|
divon |
Data Science |
3 |
3,846 |
Jun-10-2023, 01:06 AM |
|
|
Thread: Write from dictionary to excel
Post: Write from dictionary to excel
Hello everyone, I would like to ask about how to write from a dictionary into excel.
The program that I have written so far:
import numpy as np
import pandas as pd
n = 3
N = pow(2, n)
ilr_arr = np... |
|
divon |
Data Science |
3 |
3,846 |
Sep-27-2022, 05:06 AM |
|
|
Thread: Create recursion for elementwise operation
Post: RE: Create recursion for elementwise operation
I am sorry for being late in replying to your message, for reshaping the array, I am using a dictionary then appending each row and reshaping it. |
|
divon |
General Coding Help |
2 |
983 |
Sep-27-2022, 04:18 AM |
|
|
Thread: Create recursion for elementwise operation
Post: Create recursion for elementwise operation
Hello everyone
I have these two operations:
[Image: https://i.ibb.co/5G43gf0/f-function.png]
[Image: https://i.ibb.co/D5c4msd/g-function.png]
For the base case, the length of the array is 2:
[Image:... |
|
divon |
General Coding Help |
2 |
983 |
Jun-02-2022, 04:01 AM |
|
|
Thread: Element wise computation
Post: RE: Element wise computation
(Apr-29-2022, 08:09 AM)Gribouillis Wrote: I would try something like this:
import numpy as np
import math as mt
G = np.array([[1, 0, 0, 0, 0, 0, 0, 0], [1, 1, 0, 0, 0, 0, 0, 0], [1, 0, 1, 0, 0, 0,... |
|
divon |
General Coding Help |
2 |
1,593 |
Jun-01-2022, 02:36 AM |
|
|
Thread: Element wise computation
Post: Element wise computation
Hello everyone
Suppose I have two arrays:
[Image: https://i.ibb.co/Tc4PrMx/generator-matrix.png]
and
[Image: https://i.ibb.co/xzkyZN8/received-message.png]
And I wanted to do calculations using this... |
|
divon |
General Coding Help |
2 |
1,593 |
Apr-26-2022, 12:20 PM |
|
|
Thread: Calculate next rows based on previous values of array
Post: Calculate next rows based on previous values of ar...
Hello everyone,
I am trying to calculate the value of the next array from the previous array. The calculation is done like this:
1. I have two arrays like this:
[Image: https://i.ibb.co/Z80DM3h/screen... |
|
divon |
General Coding Help |
0 |
1,795 |
Nov-23-2021, 04:44 AM |
|
|
Thread: array manipulation
Post: RE: array manipulation
Thank you very much for your reply, @deanhystad, and @naughtyCat
Both of your replies are working perfectly, and I can continue with my work.
Once again, Thank you very much.
**biggrin** |
|
divon |
General Coding Help |
3 |
1,764 |
Sep-03-2021, 09:44 AM |
|
|
Thread: array manipulation
Post: array manipulation
Hello everyone,
I have question about array manipulation in Numpy. In this case I have 3 arrays:
arr_1 = [ 0 1 2 4 8 3 5 9 6 10 12 7 11 13 14 15]
arr_2 = [1 0 0 1 1 1 0 1]
arr_3 = [0 0 0 0 0... |
|
divon |
General Coding Help |
3 |
1,764 |
Sep-02-2021, 11:51 PM |
|
|
Thread: bit-flipping decoding
Post: RE: bit-flipping decoding
(Aug-25-2021, 03:13 AM)Larz60+ Wrote: Thanks for sharing solutionYou're welcome @Larz60. But I am too rush in posting the solution for this code. And after doing some testing (by changing the value ... |
|
divon |
Data Science |
11 |
4,760 |
Aug-26-2021, 11:25 PM |
|
|
Thread: bit-flipping decoding
Post: RE: bit-flipping decoding
Hello everyone
Finally I have solved the bit-flipping algorithm, the code will be like this
import numpy as np
#declaration of parity-check matrix
H = np.array([[1, 1, 0, 1, 0, 0], [0, 1, 1, 0, 1, 0... |
|
divon |
Data Science |
11 |
4,760 |
Aug-25-2021, 12:52 AM |
|
|
Thread: bit-flipping decoding
Post: RE: bit-flipping decoding
Hello everyone
I would like to post an update on my quest to translate line 11 of the algorithm to python, and finally, I made it. The code is like this:
import numpy as np
#declaration of the parit... |
|
divon |
Data Science |
11 |
4,760 |
Aug-24-2021, 11:33 PM |
|
|
Thread: bit-flipping decoding
Post: RE: bit-flipping decoding
Hello everyone,
I would like to post today's update, in this program I can obtain the value of M[i_prime] when i != i_prime, but I am still stuck for representing line 11 of the algorithm into python
... |
|
divon |
Data Science |
11 |
4,760 |
Aug-20-2021, 08:40 AM |
|
|
Thread: bit-flipping decoding
Post: RE: bit-flipping decoding
Hello everyone, especially to @jefsummers
I will try to explain the algorithm:
I have M = [0 1 1 0 1 1] and the value will be taken individually later.
The explanation of B_j is the same as in my pr... |
|
divon |
Data Science |
11 |
4,760 |
Aug-19-2021, 10:32 AM |
|
|
Thread: bit-flipping decoding
Post: RE: bit-flipping decoding
(Aug-18-2021, 06:57 PM)Larz60+ Wrote: if you don't have a copy, You can see the entire section of "Iterative Error Correction"
here: https://books.google.com/books?hl=en&lr=...zOnWrVD8ZQ
There ... |
|
divon |
Data Science |
11 |
4,760 |
Aug-19-2021, 02:31 AM |
|
|
Thread: bit-flipping decoding
Post: RE: bit-flipping decoding
(Aug-18-2021, 02:15 PM)jefsummers Wrote: My last math course was in 1979, so my understanding of the notation is a bit rusty. Can you explain line 11 in words? Or better, what steps you would take t... |
|
divon |
Data Science |
11 |
4,760 |
Aug-19-2021, 02:16 AM |
|
|
Thread: bit-flipping decoding
Post: bit-flipping decoding
Hello everyone,
I have a problem in trying to make a code for the algorithm of bit-flipping decoding, the algorithm is in the figure in the attachment. And this is the code that I wrote:
import numpy... |
|
divon |
Data Science |
11 |
4,760 |
Aug-18-2021, 08:16 AM |