C++神经网络开发包ANNIE

源代码在线查看: random.h

软件大小: 452 K
上传用户: whyzhao
关键词: ANNIE 神经网络 开发包
下载地址: 免注册下载 普通下载 VIP

相关代码

				/**				 * Random generators				 * $Id: random.h,v 1.1 2004/06/16 10:53:30 opx Exp $				 * @author OP				 */								#ifndef RANDOM_H				#define RANDOM_H								#include "defines.h"								namespace annie				{				///returns a number drawn uniformly from min, max				real uniformRandom(real min, real max);								inline Vector uniformRandomVector(real min, real max, uint size)	{ Vector o(size); for(uint i=0; i								/// Generates a random real number between -1.0 and 1.0				real random();								/// Generates a random real number between 0.0 and 1.0				real random01();								/** Generates a random integer between given bounds.				  * @param low Lower bound				  * @param high Upper bound (exclusively)				  * @return A random integer i, low				  */				int randomInt(int low, int high);								}								#endif							

相关资源