Statistics/Basic: Difference between revisions

Content added Content deleted
m (→‎{{header|Ring}}: Remove vanity tags)
m (→‎{{header|R}}: Remove vanity tags)
Line 3,281: Line 3,281:
The challenge of processing a trillion numbers is generating them in the first place. As the errors below show, allocating 7.5 TB for such a vector is simply impractical. The workaround is to generate them, process individual data points and then discard them. The downside in this case is the time.
The challenge of processing a trillion numbers is generating them in the first place. As the errors below show, allocating 7.5 TB for such a vector is simply impractical. The workaround is to generate them, process individual data points and then discard them. The downside in this case is the time.
<lang R>
<lang R>
#Abhishek Ghosh, 10th January 2018

#Generate the sets
#Generate the sets
a = runif(10,min=0,max=1)
a = runif(10,min=0,max=1)
Line 3,328: Line 3,326:
Error: cannot allocate vector of size 7450.6 Gb
Error: cannot allocate vector of size 7450.6 Gb
</pre>
</pre>

=={{header|Racket}}==
=={{header|Racket}}==
<lang racket>
<lang racket>