本文件為用C語言實現(xiàn)的可實現(xiàn)廣義異或問題的bp神經(jīng)網(wǎng)絡(luò)算法。該問題是對標(biāo)準(zhǔn)異或問題的推廣。在標(biāo)準(zhǔn)異或問題中,輸入X1和X2取離散量-1或+1,在廣義異或問題中,輸入(X1,X2)可以在區(qū)間[-1,+1] X [-1, +1]內(nèi)任意取值,而輸出為Y=sign(x1,x2),其中sign()為符號函數(shù),在區(qū)間[-1,+1] X [-1, +1]內(nèi)隨機產(chǎn)生500個訓(xùn)練樣本.本程序用標(biāo)準(zhǔn)BP網(wǎng)實現(xiàn)該分類問題.
本書第二部分講述的是在Wi n 3 2平臺上的Wi n s o c k編程。對于眾多的基層網(wǎng)絡(luò)協(xié)議,
Wi n s o c k是訪問它們的首選接口。而且在每個Wi n 3 2平臺上,Wi n s o c k都以不同的形式存在著。
Wi n s o c k是網(wǎng)絡(luò)編程接口,而不是協(xié)議。它從U n i x平臺的B e r k e l e y(B S D)套接字方案借鑒了
許多東西,后者能訪問多種網(wǎng)絡(luò)協(xié)議。在Wi n 3 2環(huán)境中,Wi n s o c k接口最終成為一個真正的
“與協(xié)議無關(guān)”接口,尤其是在Winsock 2發(fā)布之后。
CCS編程環(huán)境 使用的是匯編加C的混合編程方法:
The programme of the Correlation Algorithm.
Using INT2 to get the input signal.
Array x, in first step, is the input signal produced by programme,
in next step, is the input signal get from A/D,
the length is 128, 32-bit floating point.
Array y, in first step, is the input signal produced by programme,
in next step, is the input signal get from A/D,
the length is 128, 32-bit floating point.
Array cor is the Correlation result, the length is 255, 32-bit floating point.