summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/statisticsFunctions/strange/dstrangerowa.c
diff options
context:
space:
mode:
authorBrijeshcr2017-09-11 12:03:59 +0530
committerGitHub2017-09-11 12:03:59 +0530
commitb2518f279a3005536e87e45302d4e05d9aeb6d3d (patch)
tree007de2537151d82e75a6015f47f228402144763e /2.3-1/src/c/statisticsFunctions/strange/dstrangerowa.c
parenta7ca3ed26f1fa8f51c586aba300005bf4a700cc4 (diff)
parent75558fc35bebe72c6db7e1b3b0c7ae214aa4fc8e (diff)
downloadScilab2C-b2518f279a3005536e87e45302d4e05d9aeb6d3d.tar.gz
Scilab2C-b2518f279a3005536e87e45302d4e05d9aeb6d3d.tar.bz2
Scilab2C-b2518f279a3005536e87e45302d4e05d9aeb6d3d.zip
Merge pull request #29 from abhinavdronamraju/masterHEADmaster
Merged and added functions
Diffstat (limited to '2.3-1/src/c/statisticsFunctions/strange/dstrangerowa.c')
-rw-r--r--2.3-1/src/c/statisticsFunctions/strange/dstrangerowa.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/2.3-1/src/c/statisticsFunctions/strange/dstrangerowa.c b/2.3-1/src/c/statisticsFunctions/strange/dstrangerowa.c
new file mode 100644
index 00000000..f63df35c
--- /dev/null
+++ b/2.3-1/src/c/statisticsFunctions/strange/dstrangerowa.c
@@ -0,0 +1,35 @@
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ This file must be used under the terms of the CeCILL.
+ This source file is licensed as described in the file COPYING, which
+ you should have received as part of this distribution. The terms
+ are also available at
+ http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ Author: Abhinav Dronamraju
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+
+#include "strange.h"
+#include "types.h"
+#include "uint16.h"
+
+void dstrangerowa(double *in, int row, int col, double* out)
+{
+ double inter[row];
+
+
+for(int i=0; i< col; i++)
+ {
+ for(int j=0 ; j< row; j++)
+ {
+ inter[j]= in[j+ (i*row)];
+
+ }
+
+ out[i]= dstrangea(inter, row);
+ }
+
+
+}