summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/statisticsFunctions/moment/dmoments.c
diff options
context:
space:
mode:
authorAbhinav Dronamraju2017-08-10 20:33:46 +0530
committerAbhinav Dronamraju2017-08-10 20:33:46 +0530
commitde496fd5c6183e2f5eba2b4688d2bcf18aef62a1 (patch)
tree81f1fac7d3b728c5bebb44480066eb454ec5d0f6 /2.3-1/src/c/statisticsFunctions/moment/dmoments.c
parent6823e5b2c48f92e7e88b7c06fc7b6191e2a3c411 (diff)
parentdcfc88991cdfa7f8e53607094e8d26cae399b78e (diff)
downloadScilab2C-de496fd5c6183e2f5eba2b4688d2bcf18aef62a1.tar.gz
Scilab2C-de496fd5c6183e2f5eba2b4688d2bcf18aef62a1.tar.bz2
Scilab2C-de496fd5c6183e2f5eba2b4688d2bcf18aef62a1.zip
Merge and functions added
Diffstat (limited to '2.3-1/src/c/statisticsFunctions/moment/dmoments.c')
-rw-r--r--2.3-1/src/c/statisticsFunctions/moment/dmoments.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/2.3-1/src/c/statisticsFunctions/moment/dmoments.c b/2.3-1/src/c/statisticsFunctions/moment/dmoments.c
index b9d8564a..779ffa0f 100644
--- a/2.3-1/src/c/statisticsFunctions/moment/dmoments.c
+++ b/2.3-1/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);
}