c語(yǔ)言版的多項(xiàng)式曲線擬合。 用最小二乘法進(jìn)行曲線擬合. 用p-1 次多項(xiàng)式進(jìn)行擬合,p<= 10 x,y 的第0個(gè)域x[0],y[0],沒(méi)有用,有效數(shù)據(jù)從x[1],y[1] 開(kāi)始 nNodeNum,有效數(shù)據(jù)節(jié)點(diǎn)的個(gè)數(shù)。 b,為輸出的多項(xiàng)式系數(shù),b[i] 為b[i-1]次項(xiàng)。b[0],沒(méi)有用。 b,有10個(gè)元素ok。
標(biāo)簽: 多項(xiàng)式 曲線擬合 c語(yǔ)言 最小二乘法
上傳時(shí)間: 2014-01-12
上傳用戶:變形金剛
This book introduces embedded systems to C and C++ programmers. Topics include testing memory devices, writing and erasing Flash memory, verifying nonvolatile memory contents, controlling on-chip peripherals, device driver design and implementation, optimizing embedded code for size and speed, and making the most of C++ without a performance penalty.
標(biāo)簽: programmers introduces embedded include
上傳時(shí)間: 2015-06-22
上傳用戶:VRMMO
用C51實(shí)現(xiàn)的拼音輸入法,這是改寫的網(wǎng)友 embuffalo、獨(dú)步上載在www.21ic.com自由發(fā)布區(qū)的由張凱原作的51上的拼音輸入法程序。 原作使用了一個(gè)二維數(shù)組用以查表,我認(rèn)為這樣比較的浪費(fèi)空間,而且每個(gè)字表的索引地址要手工輸入,效率不高。所以我用結(jié)構(gòu)體將其改寫了一下。就是大家現(xiàn)在看到的這個(gè)。 因?yàn)榇a比較的大,共有6,000多漢字,這樣就得要12,000 byte來(lái)存放GB內(nèi)碼,所以也是沒(méi)辦法的 :-( 編譯結(jié)果約為3000h,因?yàn)榇蟛糠质撬饕恚a優(yōu)化幾乎無(wú)效。 在Keil C里仿真芯片選用的是華邦的W77E58,它有32k ROM, 256B on-chip RAM, 1K on-chip SRAM (用DPTR1指針尋址,相當(dāng)于有1K的片上x(chóng)data)。條件有限,沒(méi)有上片試驗(yàn),仿真而已。 打算將其移植到AVR上,但CodeAVRC與IAR EC++在結(jié)構(gòu)體、指針的定義使用上似乎與C51不太一樣,現(xiàn)在還未搞定。還希望在這方面有經(jīng)驗(yàn)的網(wǎng)友能給予指導(dǎo)。
標(biāo)簽: embuffalo C51 com www
上傳時(shí)間: 2014-01-26
上傳用戶:semi1981
crc任意位生成多項(xiàng)式 任意位運(yùn)算 自適應(yīng)算法 循環(huán)冗余校驗(yàn)碼(CRC,Cyclic Redundancy Code)是采用多項(xiàng)式的 編碼方式,這種方法把要發(fā)送的數(shù)據(jù)看成是一個(gè)多項(xiàng)式的系數(shù) ,數(shù)據(jù)為bn-1bn-2…b1b0 (其中為0或1),則其對(duì)應(yīng)的多項(xiàng)式為: bn-1Xn-1+bn-2Xn-2+…+b1X+b0 例如:數(shù)據(jù)“10010101”可以寫為多項(xiàng)式 X7+X4+X2+1。 循環(huán)冗余校驗(yàn)CRC 循環(huán)冗余校驗(yàn)方法的原理如下: (1) 設(shè)要發(fā)送的數(shù)據(jù)對(duì)應(yīng)的多項(xiàng)式為P(x)。 (2) 發(fā)送方和接收方約定一個(gè)生成多項(xiàng)式G(x),設(shè)該生成多項(xiàng)式 的最高次冪為r。 (3) 在數(shù)據(jù)塊的末尾添加r個(gè)0,則其相對(duì)應(yīng)的多項(xiàng)式為M(x)=XrP(x) 。(左移r位) (4) 用M(x)除以G(x),獲得商Q(x)和余式R(x),則 M(x)=Q(x) ×G(x)+R(x)。 (5) 令T(x)=M(x)+R(x),采用模2運(yùn)算,T(x)所對(duì)應(yīng)的數(shù)據(jù)是在原數(shù) 據(jù)塊的末尾加上余式所對(duì)應(yīng)的數(shù)據(jù)得到的。 (6) 發(fā)送T(x)所對(duì)應(yīng)的數(shù)據(jù)。 (7) 設(shè)接收端接收到的數(shù)據(jù)對(duì)應(yīng)的多項(xiàng)式為T’(x),將T’(x)除以G(x) ,若余式為0,則認(rèn)為沒(méi)有錯(cuò)誤,否則認(rèn)為有錯(cuò)。
標(biāo)簽: crc CRC 多項(xiàng)式 位運(yùn)算
上傳時(shí)間: 2014-11-28
上傳用戶:宋桃子
crc任意位生成多項(xiàng)式 任意位運(yùn)算 自適應(yīng)算法 循環(huán)冗余校驗(yàn)碼(CRC,Cyclic Redundancy Code)是采用多項(xiàng)式的 編碼方式,這種方法把要發(fā)送的數(shù)據(jù)看成是一個(gè)多項(xiàng)式的系數(shù) ,數(shù)據(jù)為bn-1bn-2…b1b0 (其中為0或1),則其對(duì)應(yīng)的多項(xiàng)式為: bn-1Xn-1+bn-2Xn-2+…+b1X+b0 例如:數(shù)據(jù)“10010101”可以寫為多項(xiàng)式 X7+X4+X2+1。 循環(huán)冗余校驗(yàn)CRC 循環(huán)冗余校驗(yàn)方法的原理如下: (1) 設(shè)要發(fā)送的數(shù)據(jù)對(duì)應(yīng)的多項(xiàng)式為P(x)。 (2) 發(fā)送方和接收方約定一個(gè)生成多項(xiàng)式G(x),設(shè)該生成多項(xiàng)式 的最高次冪為r。 (3) 在數(shù)據(jù)塊的末尾添加r個(gè)0,則其相對(duì)應(yīng)的多項(xiàng)式為M(x)=XrP(x) 。(左移r位) (4) 用M(x)除以G(x),獲得商Q(x)和余式R(x),則 M(x)=Q(x) ×G(x)+R(x)。 (5) 令T(x)=M(x)+R(x),采用模2運(yùn)算,T(x)所對(duì)應(yīng)的數(shù)據(jù)是在原數(shù) 據(jù)塊的末尾加上余式所對(duì)應(yīng)的數(shù)據(jù)得到的。 (6) 發(fā)送T(x)所對(duì)應(yīng)的數(shù)據(jù)。 (7) 設(shè)接收端接收到的數(shù)據(jù)對(duì)應(yīng)的多項(xiàng)式為T’(x),將T’(x)除以G(x) ,若余式為0,則認(rèn)為沒(méi)有錯(cuò)誤,否則認(rèn)為有錯(cuò)
標(biāo)簽: crc CRC 多項(xiàng)式 位運(yùn)算
上傳時(shí)間: 2014-01-16
上傳用戶:hphh
This program demonstrates operation of ADC0 in polled mode. The ADC0 is // configured to use writes to AD0BUSY as its start of conversion source and // to measure the output of the on-chip temperature sensor. The temperature // sensor output is converted to degrees Celsius and is transmitted out UART0
標(biāo)簽: ADC0 demonstrates configured operation
上傳時(shí)間: 2014-01-23
上傳用戶:wangyi39
This program demonstrates operation of ADC0 in polled mode. The ADC0 is // configured to use writes to AD0BUSY as its start of conversion source and // to measure the output of the on-chip temperature sensor. The temperature // sensor output is converted to degrees Celsius and is transmitted out UART0
標(biāo)簽: ADC0 demonstrates configured operation
上傳時(shí)間: 2014-08-18
上傳用戶:米卡
Comparison of the performances of the LS and the MMSE channel estimators for a 64 sub carrier OFDM system based on the parameter of Mean square error
標(biāo)簽: the performances Comparison estimators
上傳時(shí)間: 2016-02-01
上傳用戶:hgy9473
STR912FW44上的ADS項(xiàng)目工程,包含大部分on chip peripherals的使用示例。
上傳時(shí)間: 2016-02-01
上傳用戶:jqy_china
用游標(biāo)的方法實(shí)現(xiàn)對(duì)稱差的計(jì)算,即 (A-B)+(B-A)
上傳時(shí)間: 2016-05-23
上傳用戶:遠(yuǎn)遠(yuǎn)ssad
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1