diff options
author | jofret | 2008-05-30 09:11:49 +0000 |
---|---|---|
committer | jofret | 2008-05-30 09:11:49 +0000 |
commit | 0b4335bab178e4e47e9a2b67d32a30d07f3c6b50 (patch) | |
tree | dbffbdf9f00ed20bb6f94f93793aa1a73a5ac485 /src/statisticsFunctions | |
parent | ee2741ddd49f06784e5fd80d04121655e6160d30 (diff) | |
download | scilab2c-0b4335bab178e4e47e9a2b67d32a30d07f3c6b50.tar.gz scilab2c-0b4335bab178e4e47e9a2b67d32a30d07f3c6b50.tar.bz2 scilab2c-0b4335bab178e4e47e9a2b67d32a30d07f3c6b50.zip |
Adding statistics functions module for mean
Diffstat (limited to 'src/statisticsFunctions')
-rw-r--r-- | src/statisticsFunctions/Makefile.am | 13 | ||||
-rw-r--r-- | src/statisticsFunctions/includes/mean.h | 47 | ||||
-rw-r--r-- | src/statisticsFunctions/mean/Makefile.am | 54 |
3 files changed, 114 insertions, 0 deletions
diff --git a/src/statisticsFunctions/Makefile.am b/src/statisticsFunctions/Makefile.am new file mode 100644 index 00000000..71e65292 --- /dev/null +++ b/src/statisticsFunctions/Makefile.am @@ -0,0 +1,13 @@ +## +## Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +## Copyright (C) 2006-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 +## +## + +SUBDIRS= mean
\ No newline at end of file diff --git a/src/statisticsFunctions/includes/mean.h b/src/statisticsFunctions/includes/mean.h new file mode 100644 index 00000000..f2d46c08 --- /dev/null +++ b/src/statisticsFunctions/includes/mean.h @@ -0,0 +1,47 @@ +/* + * 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 + * + */ + +#ifndef __MEAN_H__ +#define __MEAN_H__ +/* +** \brief Mean of a scalar element, just returns it +*/ +#define smeans(in) in +#define srowmeans(in) in +#define scolumnsmeans(in) in +#define smatlabmeans(in) in + +/* +** \brief Mean of a scalar element, just returns it +*/ +#define dmeans(in) in +#define drowmeans(in) in +#define dcolumnsmeans(in) in +#define dmatlabmeans(in) in + +/* +** \brief Mean of a scalar element, just returns it +*/ +#define cmeans(in) in +#define crowmeans(in) in +#define ccolumnsmeans(in) in +#define cmatlabmeans(in) in + +/* +** \brief Mean of a scalar element, just returns it +*/ +#define zmeans(in) in +#define zrowmeans(in) in +#define zcolumnsmeans(in) in +#define zmatlabmeans(in) in + +#endif /* !__MEAN_H__ */ diff --git a/src/statisticsFunctions/mean/Makefile.am b/src/statisticsFunctions/mean/Makefile.am new file mode 100644 index 00000000..dd2d9358 --- /dev/null +++ b/src/statisticsFunctions/mean/Makefile.am @@ -0,0 +1,54 @@ +## +## Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +## Copyright (C) 2006-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 +## +## + +libMean_la_CFLAGS = -I $(top_builddir)/type \ + -I ../includes + +instdir = $(top_builddir)/lib + +pkglib_LTLIBRARIES = libMean.la + +libMean_la_SOURCES = $(HEAD) $(SRC) + +SRC = smeana.c \ + dmeana.c \ + cmeana.c \ + zmeana.c + +HEAD = ../includes/mean.h + +#### +# Checking Part +#### + +check_INCLUDES = -I $(top_builddir)/statisticsFunctions/includes \ + -I $(top_builddir)/type + +check_LDADD = $(top_builddir)/type/libDoubleComplex.la \ + $(top_builddir)/type/libFloatComplex.la \ + $(top_builddir)/statisticsFunctions/mean/libMean.la \ + @LIBMATH@ + +check_PROGRAMS = testFloatMean testDoubleMean + +TESTS = testFloatMean testDoubleMean + +# +# -*- Meanine Tests -*- +# +testFloatMean_SOURCES = testFloatMean.c +testFloatMean_CFLAGS = $(check_INCLUDES) +testFloatMean_LDADD = $(check_LDADD) + +testDoubleMean_SOURCES =testDoubleMean.c +testDoubleMean_CFLAGS = $(check_INCLUDES) +testDoubleMean_LDADD = $(check_LDADD)
\ No newline at end of file |