New answers tagged statistics
0
votes
Java - Select the maximum integers from sliding windows over an array
There may be avoidable overhead in finding the same key in a Map twice in a row, OTOH, an "industrial strength" Map implementation might cache the last ...
1
vote
Identify IRC users with largest vocabulary ignoring links and short words
Add comments.
At the top of the file, explain what it does. Mention the expected input format and the output format. Include paths or "stdin and stdout".
It's a quick script. Add enough that ...
3
votes
Computing a simple moving average on an array in C++
Handling ends
Handling the ends of the array where "lag" overhangs the data set one must make assumptions in regard to the missing data. You can zero missing data (same as ignoring it), you ...
6
votes
Computing a simple moving average on an array in C++
Use const-references when you only read an argument
std::vector <long double> SMA(std::vector <long double> &ARR, int lag) {
A signature like this ...
6
votes
Computing a simple moving average on an array in C++
Suggestion 1
std::vector <long double> SMA(std::vector <long double> &ARR, int lag)
What is lag? I would rename ...
Top 50 recent answers are included
Related Tags
statistics × 366python × 136
performance × 73
c++ × 55
java × 50
beginner × 41
numpy × 38
r × 37
python-3.x × 34
algorithm × 20
pandas × 20
simulation × 20
random × 17
array × 16
csv × 15
c# × 14
javascript × 14
c × 13
c++11 × 13
data-visualization × 12
time-limit-exceeded × 11
object-oriented × 10
mathematics × 10
numerical-methods × 10
machine-learning × 9