summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/statisticsFunctions/moment/zmoments.c
diff options
context:
space:
mode:
authorBrijeshcr2017-08-08 18:55:55 +0530
committerBrijeshcr2017-08-08 18:55:55 +0530
commit60dc24077bf42ddf1b8973915350dfabdf5b040a (patch)
tree686fbd12c59335059a1c9cd5136428ba6e3f6126 /2.3-1/src/c/statisticsFunctions/moment/zmoments.c
parent3633223e4816948c61e107f4fb18eb193c0add27 (diff)
downloadScilab2C-60dc24077bf42ddf1b8973915350dfabdf5b040a.tar.gz
Scilab2C-60dc24077bf42ddf1b8973915350dfabdf5b040a.tar.bz2
Scilab2C-60dc24077bf42ddf1b8973915350dfabdf5b040a.zip
Added Sind and Tand
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));
}