diff options
author | Brijeshcr | 2017-08-08 18:55:55 +0530 |
---|---|---|
committer | Brijeshcr | 2017-08-08 18:55:55 +0530 |
commit | 14fc3be8d95da244daa1fa12d519ceee8fb97eae (patch) | |
tree | cfe22ca03c32d443779d950cdd5b8ccdba78716b /src/c/statisticsFunctions/moment | |
parent | ad787796e65e1debe25871a98f9713f23d655ae4 (diff) | |
download | Scilab2C_fossee_old-14fc3be8d95da244daa1fa12d519ceee8fb97eae.tar.gz Scilab2C_fossee_old-14fc3be8d95da244daa1fa12d519ceee8fb97eae.tar.bz2 Scilab2C_fossee_old-14fc3be8d95da244daa1fa12d519ceee8fb97eae.zip |
Added Sind and Tand
Diffstat (limited to 'src/c/statisticsFunctions/moment')
-rw-r--r-- | src/c/statisticsFunctions/moment/dmoments.c | 2 | ||||
-rw-r--r-- | src/c/statisticsFunctions/moment/smoments.c | 2 | ||||
-rw-r--r-- | src/c/statisticsFunctions/moment/zmoments.c | 2 |
3 files changed, 3 insertions, 3 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); } diff --git a/src/c/statisticsFunctions/moment/smoments.c b/src/c/statisticsFunctions/moment/smoments.c index aee9dc9..c900d81 100644 --- a/src/c/statisticsFunctions/moment/smoments.c +++ b/src/c/statisticsFunctions/moment/smoments.c @@ -8,7 +8,7 @@ float smoments (float* inp, int size, double ord) { float 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); } diff --git a/src/c/statisticsFunctions/moment/zmoments.c b/src/c/statisticsFunctions/moment/zmoments.c index 1b84737..b70df70 100644 --- a/src/c/statisticsFunctions/moment/zmoments.c +++ b/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)); } |