Index » How to call Stdev for buckets within a long array CodeCogs 18 Nov 11, 5:04PMParent PostHow to call Stdev for buckets within a long arrayYou're almost right (unless Objective C has a notation I'm not used to), so try double stdevBucket[20]; for(int i=0; i<20; i++) stdevBucket[i]= stdev(100, &dataX[i*20]);