demo2.cpp

来自「人工神经网络的源码编程」· C++ 代码 · 共 37 行

CPP
37
字号
//
//	demo.cpp
//	2004-06-07 by ShanLanshan
//
//	此程序用于测试神经元的库函数
//

#include <stdio.h>
#include <assert.h>
#include <errno.h>
#include <iostream>

#include "public/ann/hopfield/hfneuron.h"


using namespace ann;
using namespace std;

int main()
{
	AnnLib annlib;

	if (!annlib.init()) {
		cout << "artificial natural network library initialize failed\n";
		return -1;
	}

	HFSimpleGroup hopfield_group(20);

	if (!hopfield_group.mutual_conn()) {
		cout << "hopfield group mutual connect failed\n";
		return -1;
	}

	return 0;
}

⌨️ 快捷键说明

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