summaryrefslogtreecommitdiff
path: root/src/c/statisticsFunctions/moment/dmoments.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/c/statisticsFunctions/moment/dmoments.c')
-rw-r--r--src/c/statisticsFunctions/moment/dmoments.c2
1 files changed, 1 insertions, 1 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);
}