Skip to main content
3 votes
2 answers
82 views

Calculate threshold, so that 99% of random string have higher entropy

I am trying to calculate the distribution of the Shannon entropy for all possible random strings of length N. (by random, I mean that each letter at each position is picked with equal probability) To ...
HugoRune's user avatar
  • 13.7k
-1 votes
0 answers
31 views

Transfer Entropy in specific frequency band

I want to compute transfer entropy (TE) with the RTransferEntropy between 2 timeseries (EEG and EMG) in different frequencies band, such as 13-30 hz and 30-50 Hz, but this toolbox does not allow to ...
Pat Bedard's user avatar
0 votes
1 answer
100 views

Why such a token is considered to have a weak entropy? [closed]

I am using the following code in my code to send a password reset token to a user. $token = md5($user_id . time()); Why this is considered as a bad approach being cited as it has a weak entropy? The ...
Johnny's user avatar
  • 1,763
0 votes
0 answers
31 views

Get contextual entropy of each word in a sentence

I am trying to get the contextual entropy of each word within sentences of a dataset. I am following the definition of Contextual Entropy provided in this paper, so for each position within a sentence,...
ElleS's user avatar
  • 1
3 votes
1 answer
47 views

Large matrices for the quantum Ising Model

I made a Python code that computes the density matrix of states for the Ising model with a transverse field and then calculates the von Neumann entropy for the system. The problem is that the density ...
samuelmsoares's user avatar
0 votes
0 answers
19 views

Compute information entropy with PyTorch

Problem: how can I compute the information entropy by utilizing the current model. As I try to implement method proposed by this paper. But I have no clue how to make it work. Assuming there is a ...
young03600's user avatar
0 votes
0 answers
22 views

Creating a pseudorandom matrix with a specific determinant and specific entropy

I was sampling several markov matrices for a project, for that: I want to create a random matrix, which is markovian(simply it's rows sum to one) and all its elements are between 0 and 1 it has a ...
Popat Patel's user avatar
0 votes
0 answers
49 views

How do I code Gradient Descent over a discrete Probability Function in Pytorch?

I am trying to code a gradient descent algorithm to minimize the Shannon entropy of a convolution between a 1D array X and a smaller 1D array A, where the parameters to optimize for are the entries of ...
2 False's user avatar
  • 21
2 votes
0 answers
245 views

Deterministic CTR_DRBG in OpenSSL

I'm using the OpenSSL EVP API in C to call the CTR_DRBG implementation and I'm having some trouble getting the output to be deterministic. Configuration and all input arguments are fixed (entropy, ...
Francisco Abelardo Garcia Avil's user avatar
0 votes
0 answers
29 views

rouble with mounting Python code to FUSE: No response and prolonged processing ---

I attempted to mount my Python code to FUSE using the command python3 entropyfs.py ~/root ~/mount_point. However, the command doesn't seem to be functioning as expected. Instead of mounting the ...
nabila's user avatar
  • 1
0 votes
0 answers
32 views

Shannon's entropy on FTIR data

I want to calculate shannon's entropy on a ftir data. I have used two approaches and i get two different entropy value. the second code, where i have removed the backgroud using clustering and ...
Rahul Suresh's user avatar
1 vote
1 answer
179 views

Dissimilarity Index using Segregation Package

I am trying to calculate the dissimilarity index of several schools in a country using the segregation package. My dataset currently looks like this: # A tibble: 948 × 4 ethnicity ...
Alice's user avatar
  • 57
0 votes
1 answer
47 views

Arithmetic encoding implementation outputting chars

I am looking at the arithmetic coding implementation on https://www.codeabbey.com/index/task_view/adaptive-arithmetic-coding My understanding is that when you're using floating point precision, the ...
24n8's user avatar
  • 2,206
0 votes
0 answers
104 views

Python entropy calculation of trigrams

With this code in Python, I calculate the entropy value of a txt file based on trigrams, but something goes wrong, because the output value is 110.51908986855025 (which is way too high considering ...
KM1234's user avatar
  • 29
0 votes
0 answers
35 views

JS divergence code is giving wrong answers

I am using the below code to compute the JS divergence between the two pdfs but I am getting some unexpected answers: I took three datasets A,B and C in this A and B are similar datasets and C is ...
tiger's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
41