I have implemented a simple version of the congruential method, and now I want to test if the generated numbers are distributed uniformly using the KS test.
First I did a simple test
R.ks_test(U1, "punif")
but this gave an incredible small p-value. Then I realised that my congruential method yields numbers in the range of -1 to 1, and I suspect the default ks test in R checks for uniformity between 0 and 1.
Can I tell R to check for uniformity between -1 and 1, or should I simply just scale my values to be between 0 and 1?
I am using the R type provider in F# but it shouldn't make much of a difference
..and sorry if this is a simple question, my statistics kungfu is incredible weak :)