Can anyone help?
void movingAverage(float * data, int windowSize)
// what does the * do?
{
float s1=0;
int i;
for (i=windowSize;i>0;i--)
{
s1 = s1 + *(data-i)/windowSize;
//printf(" %f\n",*(data-i));
}
*(data) = s1;
// and how does this * work?
//printf(" %f\n",*data);
}
while(*(data+count)-meanSd > Tol || *(data+count)-meanSd < (-1.0)*Tol )
// what does the * before data do?
sdData = (float *)malloc(100000*sizeof(float));//
// what is (float *)

Comment