Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. $HistoryLength = 0;
  2. ic = 50;
  3. i = Table[2500*j, {j, ic}];
  4. n = {200};
  5. r = 1000;
  6. KSTL = Table[0, {j, ic}];
  7. Do[
  8. j = 1;
  9. Print["i=" <> ToString[i[[j]]] <> " r=" <> ToString[k] <>
  10. " Memory= " <> ToString[MemoryInUse[]]];
  11.  
  12. str = OpenRead[
  13. "/home/someone/somewhere/results_r1000/fi_
  14. i_" <> ToString[i[[j]]] <> "_n_" <> ToString[n[[1]]] <> "_r_" <>
  15. ToString[k - 1] <> ".txt"];
  16. dis = ReadList[str, Number];
  17. mu = Mean[dis];
  18. sigma = StandardDeviation[dis];
  19. re = If[KolmogorovSmirnovTest[dis,
  20. NormalDistribution[mu, sigma], "ShortTestConclusion"] ==
  21. "Do not reject", 1, 0];
  22. KSTL[[j]] = KSTL[[j]] + re;
  23. Remove[dis];
  24. Close[str];
  25. , {j, ic}, {k, r}]
  26.  
  27. i=2500 r=1 Memory= 75359488
  28.  
  29. KolmogorovSmirnovTest::ties: Ties exist in the data and will be ignored for the KolmogorovSmirnov test, which assumes unique values.
  30.  
  31. i=2500 r=2 Memory= 118608248
  32.  
  33. KolmogorovSmirnovTest::ties: Ties exist in the data and will be ignored for the KolmogorovSmirnov test, which assumes unique values.
  34.  
  35. Remove::remal: Symbol Removed[dis] already removed.
  36.  
  37. i=2500 r=3 Memory= 118716136
  38.  
  39. Remove::remal: Symbol Removed[dis] already removed.
  40.  
  41. i=2500 r=4 Memory= 118738672
  42.  
  43. KolmogorovSmirnovTest::ties: Ties exist in the data and will be ignored for the KolmogorovSmirnov test, which assumes unique values.
  44.  
  45. General::stop: Further output of KolmogorovSmirnovTest::ties will be suppressed during this calculation.
  46.  
  47. Remove::remal: Symbol Removed[dis] already removed.
  48.  
  49. General::stop: Further output of Remove::remal will be suppressed during this calculation.
  50.  
  51. i=2500 r=5 Memory= 118762120
  52.  
  53. i=2500 r=6 Memory= 118784760
  54.  
  55. i=2500 r=7 Memory= 118806984
  56.  
  57. i=2500 r=8 Memory= 118829208
  58.  
  59. ...
  60.  
  61. i=2500 r=44 Memory= 119643952
  62.  
  63. i=2500 r=45 Memory= 119666488
  64.  
  65. i=2500 r=46 Memory= 119689024
  66.  
  67. i=2500 r=47 Memory= 119711560
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement