Comments (8)
As mentioned in #10, I made an Excel spreadsheet that takes the result from a web DFFT and calculates magnitudes, and then counts the number of items < sqrt(3*n*n
) (or their slightly smaller constant * n * n).
I can't repro the 46 either way. I get 48 if using "correct" floating point magnitudes, and 47 if simulating the apparently buggy reduction.
from nist-statistical-test-suite.
And also I found the "Out of Bound" Error in for loop which is in line 41~42 ./sts/src/discreteFourierTransform.c
for ( i=0; i < n/2; i++ )
m[i+1] = sqrt(pow(X[2*i+1],2)+pow(X[2*i+2],2));
This line will cause unexpected behavior.
Let's think n = 10
, then maximum i
will be 4. because i < 10/2
2 * i + 2 = 2 * 4 + 2 = 10 then, but, the range of X is [0, 9] So, this is out of bound.
As far as I know, this is out of bound. And also in C, X[n] would be un-initialized value. (It could be dump variable)
Is there any reason that I don't know C grammer?
from nist-statistical-test-suite.
Hi @TyeolRik thanks for your comment. I think you should submit the second comment (out of bound error) as a separate issue.
I'm not familiar with the referenced document; if there's a link, please post. It does appear that you've found an issue given your checks; but as I'm not the author of the code or the document, I can't comment intelligently. Maybe we should see if the NIST people have a better repo now to refer to; in the last few years, a lot has changed.
from nist-statistical-test-suite.
Hi @TyeolRik thanks for your comment. I think you should submit the second comment (out of bound error) as a separate issue.
I'm not familiar with the referenced document; if there's a link, please post. It does appear that you've found an issue given your checks; but as I'm not the author of the code or the document, I can't comment intelligently. Maybe we should see if the NIST people have a better repo now to refer to; in the last few years, a lot has changed.
Thank you. I opened a new issue about this. (For loop out of bound problem)
Then, shall I delete the second comment which is about for loop?
from nist-statistical-test-suite.
Hi @TyeolRik thanks for your comment. I think you should submit the second comment (out of bound error) as a separate issue.
I'm not familiar with the referenced document; if there's a link, please post. It does appear that you've found an issue given your checks; but as I'm not the author of the code or the document, I can't comment intelligently. Maybe we should see if the NIST people have a better repo now to refer to; in the last few years, a lot has changed.
And also, there is PDF file, referenced document, in your repository, assets/nistspecialpublication800-22r1a.pdf.
You can see Page 36 and Page 69 for detail calculation.
from nist-statistical-test-suite.
Thanks... as you might gather, I'm a curator, not a developer, on this particular repo. I had forgotten that I'd tracked that down! I'll take a look if I have time.
from nist-statistical-test-suite.
Then, shall I delete the second comment which is about for loop?
Up to you. You could just edit it and put in strike-throughs and link to the new issue; or leave it as is; Github is already pointing to the issue.
from nist-statistical-test-suite.
Closing this, as I think it's answered. Reopen if needed.
from nist-statistical-test-suite.
Related Issues (11)
- Add pdf
- I found the "Out of Bound" Error in discreteFourierTransform.c HOT 13
- I have error of Running the Test Code HOT 2
- Input file format HOT 2
- Document parameter to asses and number of bit streams
- LinearComplexity
- Add setup scripts and make it build on ubuntu 16.04 LTS
- Universal test failure? HOT 3
- Problem on running the tests. HOT 5
- How many bitstreams? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nist-statistical-test-suite.