From db464f35f5a10b58d9ed1085e0b462689adee583 Mon Sep 17 00:00:00 2001 From: Siddhesh Wani Date: Mon, 25 May 2015 14:46:31 +0530 Subject: Original Version --- src/c/statisticsFunctions/max/smaxa.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/c/statisticsFunctions/max/smaxa.c (limited to 'src/c/statisticsFunctions/max/smaxa.c') diff --git a/src/c/statisticsFunctions/max/smaxa.c b/src/c/statisticsFunctions/max/smaxa.c new file mode 100644 index 00000000..f47fcffe --- /dev/null +++ b/src/c/statisticsFunctions/max/smaxa.c @@ -0,0 +1,25 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008-2008 - INRIA - Bruno JOFRET + * + * 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 + * + */ + +#include "statMax.h" + +float smaxa(float *in, int size) { + float out = in[0]; + int i = 0; + + for (i = 1; i < size; ++i) + { + if (in[i]>out) out = in[i]; + } + return out; + +} -- cgit From 5f2d4d678256289e72c1455cf26d9c0ecdeedc0e Mon Sep 17 00:00:00 2001 From: imushir Date: Fri, 27 Nov 2015 15:22:41 +0530 Subject: added c files for u8 u16 i8 i16 --- src/c/statisticsFunctions/max/smaxa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/c/statisticsFunctions/max/smaxa.c') diff --git a/src/c/statisticsFunctions/max/smaxa.c b/src/c/statisticsFunctions/max/smaxa.c index f47fcffe..03b4cf18 100644 --- a/src/c/statisticsFunctions/max/smaxa.c +++ b/src/c/statisticsFunctions/max/smaxa.c @@ -9,8 +9,8 @@ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt * */ - #include "statMax.h" +//#include "max.h" float smaxa(float *in, int size) { float out = in[0]; -- cgit From c8fd6991786ccddb44547b619178bb391f3f9b96 Mon Sep 17 00:00:00 2001 From: siddhu8990 Date: Thu, 18 Aug 2016 15:47:18 +0530 Subject: RPi-PWM and basic imaage processing --- src/c/statisticsFunctions/max/smaxa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/c/statisticsFunctions/max/smaxa.c') diff --git a/src/c/statisticsFunctions/max/smaxa.c b/src/c/statisticsFunctions/max/smaxa.c index 03b4cf18..3410faea 100644 --- a/src/c/statisticsFunctions/max/smaxa.c +++ b/src/c/statisticsFunctions/max/smaxa.c @@ -10,7 +10,7 @@ * */ #include "statMax.h" -//#include "max.h" + float smaxa(float *in, int size) { float out = in[0]; -- cgit