summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/statisticsFunctions/moment/zmoments.c
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/src/c/statisticsFunctions/moment/zmoments.c')
-rw-r--r--2.3-1/src/c/statisticsFunctions/moment/zmoments.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/2.3-1/src/c/statisticsFunctions/moment/zmoments.c b/2.3-1/src/c/statisticsFunctions/moment/zmoments.c
index 1b847376..b70df707 100644
--- a/2.3-1/src/c/statisticsFunctions/moment/zmoments.c
+++ b/2.3-1/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));
}