⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aine.h

📁 neural network 一个演示原理的代码
💻 H
字号:
/*
	          _/_/_/_/   _/_/_/  _/       _/   _/_/_/_/_/
	        _/      _/    _/    _/_/     _/   _/         
	       _/      _/    _/    _/ _/    _/   _/      
	      _/      _/    _/    _/  _/   _/   _/      
	     _/      _/    _/    _/   _/  _/   _/_/_/
	    _/      _/    _/    _/    _/ _/   _/   
	   _/_/_/_/_/    _/    _/     _/_/   _/    
	  _/      _/    _/    _/       _/   _/      
	 _/      _/    _/    _/       _/   _/      
	_/      _/  _/_/_/  _/       _/   _/_/_/_/_/


	\author Hannosset Christophe
	\author c.hannosset@ainenn.org
	\version 1.0
	\date	18 - 09 - 2004

	\brief Common Neural Network include
*/

#if !defined( __AINE_H__ )
#define __AINE_H__

#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <float.h>
#include <stdarg.h>
#include <math.h>

#include <fstream>
#include <iostream>
#include <iomanip>
#include <iterator>

#include <string>
#include <set>
#include <map>
#include <list>
#include <vector>
#include <deque>
#include <algorithm>
#include <numeric>
#include <functional>

using namespace std;

/*!	Correct a small omission in the STL... Just to make the line possible with a double....	*/
template <class _InputIter, class _Function> _Function SaveEach( _InputIter __first , _InputIter __last , _Function __f ) 
{
	for( ; __first != __last ; ++__first )
		__f = *__first;
	return __f;
}

// TEMPLATE FUNCTION accumulate 
template< class _InIt ,	class _Ty ,	class _Fn2 > inline _Ty sumof( _InIt _First , _InIt _Last , _Ty _Val , _Fn2 _Func )
{	// return sum of _Val and all in [_First, _Last), using _Func
	for (; _First != _Last; ++_First)
		_Val += _Func( *_First );
	return (_Val);
}

template<class _InIt,class _Fn1> inline int ForEach( _InIt _First , _InIt _Last , _Fn1 _Func )
{	// perform function for each element
	int cnt = 0;
	for( ; _First != _Last ; ++_First )
		cnt += (int)_Func( *_First );
	return cnt;
}

#define NNVERSION	"AI Neural Entity Version 1.0.5"

#pragma warning( disable : 4786 )

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -