用C语言实现了高斯白噪声数据的产生Routinemrandom:Togeneratetherandomnumber(pseudo-whitenoise).inputParameters:n:therandomdatanumberrequested;integer.iseed:theseedforpseudo-randomdatageneration.itmustbeinitializedbymainprogram(suggestedvalueisISEED=12357),andtherandomnumberiscycled,thecyclelength=1,048,576itype:randomdatadistributiontype,seebelow:itype=1:Uniformdistributed,from0.0to1.0itype=2:Uniformdistributed,Mean=0.0,Variance(方差)(Power)p=1.0itype=3:Uniformdistributed,Mean=0.0,Variance(Power)p=p.itype=4:Gaussiandistributed,Mean=0.0,Variance(Power)p=1.0itype=5:Gaussiandistributed,Mean=0.0,Variance(Power)p=p.p:variance(Power)ofrandom,onlyusedwhenitype=3oritype=5.outparameters:u:ndimensionedrealarray,dataisstoredinu(0)tou(n-1).inChapter1
1