diff options
author | Abhinav Dronamraju | 2017-08-10 20:33:46 +0530 |
---|---|---|
committer | Abhinav Dronamraju | 2017-08-10 20:33:46 +0530 |
commit | de496fd5c6183e2f5eba2b4688d2bcf18aef62a1 (patch) | |
tree | 81f1fac7d3b728c5bebb44480066eb454ec5d0f6 /2.3-1/src/c/statisticsFunctions/moment/dmoments.c | |
parent | 6823e5b2c48f92e7e88b7c06fc7b6191e2a3c411 (diff) | |
parent | dcfc88991cdfa7f8e53607094e8d26cae399b78e (diff) | |
download | Scilab2C-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.c | 2 |
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); } |