Logo Search packages:      
Sourcecode: libneuralnet version File versions  Download package

utils.hh

/*
** utils.hh
** Login : <kami@MeatFucker.Masaq>
** Started on  Wed Jul  2 22:55:00 2003 Guillaume Stordeur
** $Id: utils.hh,v 1.8 2003/10/13 22:15:42 pepe Exp $
** 
** Copyright (C) 2003 Guillaume Stordeur
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU Lesser General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
** 
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
** GNU Lesser General Public License for more details.
** 
** You should have received a copy of the GNU Lesser General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/

#ifndef     UTILS_HH_
# define    UTILS_HH_

float mrand(float min, float max);

float randWeight();

# define EPSILON 0.00001f
# ifndef MAX
#  define MAX(A, B) ( ((A) > (B)) ? (A) : (B) )
# endif /* !MAX */
# ifndef MIN
#  define MIN(A, B) ( ((B) > (A)) ? (A) : (B) )
# endif /* !MIN */


#endif          /* !UTILS_HH_ */

Generated by  Doxygen 1.6.0   Back to index