B
Bill Cunningham
I want to ask this questio to see if I am using proper form or not. I
want to write a function that takes a list of doubles and these can be
negative numbers and create an exponential moving average. Here is a snippet
of what I had in mind.
#include <stdio.h>
#include <float.h>
double ema(double ma1[DBL_MAX]... and so on.
I orginally wrote the 1st parameter to take a double * but I was uneasy
about users entering buffer overflow. Double *ma1 didn't cut it in my mind.
Any opinions? Proper code equitte would be appreciated.
B
want to write a function that takes a list of doubles and these can be
negative numbers and create an exponential moving average. Here is a snippet
of what I had in mind.
#include <stdio.h>
#include <float.h>
double ema(double ma1[DBL_MAX]... and so on.
I orginally wrote the 1st parameter to take a double * but I was uneasy
about users entering buffer overflow. Double *ma1 didn't cut it in my mind.
Any opinions? Proper code equitte would be appreciated.
B