本文件為用C語言實現的可實現廣義異或問題的bp神經網絡算法。該問題是對標準異或問題的推廣。在標準異或問題中,輸入X1和X2取離散量-1或+1,在廣義異或問題中,輸入(X1,X2)可以在區間[-1,+1] X [-1, +1]內任意取值,而輸出為Y=sign(x1,x2),其中sign()為符號函數,在區間[-1,+1] X [-1, +1]內隨機產生500個訓練樣本.本程序用標準BP網實現該分類問題.
Title: STL Tutorial and Reference Guide: C++ Programming with the Standard Template Library (2nd Edition)
Author: David R. Musser / Gillmer J. Derge / Atul Saini / Gilmer J. Derge
Publisher: Addison-Wesley
Page: 560
Edition: 2nd edition (March 27, 2001)
Format: PDF
Summary: The Standard Template Library was created as the first library of genetic algorithms and data structures, with four ideas in mind: generic programming, abstractness without loss of efficiency, the Von Neumann computation model, and value semantics. This guide provides a tutorial, a description of each element of the library, and sample applications. The expanded second edition includes new code examples and demonstrations of the use of STL in real-world C++ software development it reflects changes made to STL for the final ANSI/ISO C++ language standard.