annie is an ANN, ie, Artificial Neural Network library developed in C++. It can be used to implement

源代码在线查看: random.h

软件大小: 482 K
上传用户: danlong
关键词: Artificial developed implement Network
下载地址: 免注册下载 普通下载 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							

相关资源