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/smoments.c | |
parent | ad787796e65e1debe25871a98f9713f23d655ae4 (diff) | |
download | scilab2c-14fc3be8d95da244daa1fa12d519ceee8fb97eae.tar.gz scilab2c-14fc3be8d95da244daa1fa12d519ceee8fb97eae.tar.bz2 scilab2c-14fc3be8d95da244daa1fa12d519ceee8fb97eae.zip |
Added Sind and Tand
Diffstat (limited to 'src/c/statisticsFunctions/moment/smoments.c')
-rw-r--r-- | src/c/statisticsFunctions/moment/smoments.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c/statisticsFunctions/moment/smoments.c b/src/c/statisticsFunctions/moment/smoments.c index aee9dc9e..c900d815 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); } |