summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/statisticsFunctions/median/dmedianrowa.c
diff options
context:
space:
mode:
authorAbhinav Dronamraju2017-07-17 21:57:08 +0530
committerAbhinav Dronamraju2017-07-17 21:57:08 +0530
commit83869364b668666f317b348aca35a940e010761d (patch)
tree063cdffb85a94716850b65450c5f893be456b498 /2.3-1/src/c/statisticsFunctions/median/dmedianrowa.c
parent3af005920a6bce61c99d26fa205794634f5ad405 (diff)
downloadScilab2C-83869364b668666f317b348aca35a940e010761d.tar.gz
Scilab2C-83869364b668666f317b348aca35a940e010761d.tar.bz2
Scilab2C-83869364b668666f317b348aca35a940e010761d.zip
Median added
Diffstat (limited to '2.3-1/src/c/statisticsFunctions/median/dmedianrowa.c')
-rw-r--r--2.3-1/src/c/statisticsFunctions/median/dmedianrowa.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/2.3-1/src/c/statisticsFunctions/median/dmedianrowa.c b/2.3-1/src/c/statisticsFunctions/median/dmedianrowa.c
new file mode 100644
index 00000000..4b5879c5
--- /dev/null
+++ b/2.3-1/src/c/statisticsFunctions/median/dmedianrowa.c
@@ -0,0 +1,36 @@
+/* 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 "median.h"
+#include "types.h"
+#include "uint16.h"
+
+void dmedianrowa(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]= dmediana( inter, row);
+
+ }
+
+
+}