diff options
Diffstat (limited to 'src/c/statisticsFunctions')
-rw-r--r-- | src/c/statisticsFunctions/moment/dmoments.c | 2 | ||||
-rw-r--r-- | src/c/statisticsFunctions/moment/smoments.c | 2 | ||||
-rw-r--r-- | src/c/statisticsFunctions/moment/zmoments.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/c/statisticsFunctions/moment/dmoments.c b/src/c/statisticsFunctions/moment/dmoments.c index b9d8564..779ffa0 100644 --- a/src/c/statisticsFunctions/moment/dmoments.c +++ b/src/c/statisticsFunctions/moment/dmoments.c @@ -8,7 +8,7 @@ double dmoments (double* inp, int size, double ord) { double sum = 0; - for(int i = 0; i < size; i++) + for(int i = 0; i < size; i++) // Elements are raised to the order and then their mean is calculated to give moment { sum = sum + pow(inp[i], ord); } diff --git a/src/c/statisticsFunctions/moment/smoments.c b/src/c/statisticsFunctions/moment/smoments.c index aee9dc9..c900d81 100644 --- a/src/c/statisticsFunctions/moment/smoments.c +++ b/src/c/statisticsFunctions/moment/smoments.c @@ -8,7 +8,7 @@ float smoments (float* inp, int size, double ord) { float sum = 0; - for(int i = 0; i < size; i++) + for(int i = 0; i < size; i++) // Elements are raised to the order and then their mean is calculated to give moment { sum = sum + pow(inp[i], ord); } diff --git a/src/c/statisticsFunctions/moment/zmoments.c b/src/c/statisticsFunctions/moment/zmoments.c index 1b84737..b70df70 100644 --- a/src/c/statisticsFunctions/moment/zmoments.c +++ b/src/c/statisticsFunctions/moment/zmoments.c @@ -13,7 +13,7 @@ doubleComplex zmoments (doubleComplex* inp, int size, double ord) { doubleComplex sum = DoubleComplex(0,0); - for(int i = 0; i < size; i++) + for(int i = 0; i < size; i++) // Elements are raised to the order and then their mean is calculated to give moment { sum = zadds(sum,zpows(inp[i], ord)); } |