Re: [Numpy-discussion] how to fit a given pdf

2010-08-11 Thread josef . pktd
On Wed, Aug 11, 2010 at 8:00 PM, Geordie McBain wrote: > 2010/8/12 Renato Fabbri : >> Dear All, >> >> help appreciated, thanks in advance. >> >> how do you fit a pdf you have with a given pdf (say gamma). >> >> with the file attached, you can go like: >> >> a=open("AC-010_ED-1m37F100P0.txt","rb")

Re: [Numpy-discussion] how to fit a given pdf

2010-08-11 Thread Geordie McBain
2010/8/12 Renato Fabbri : > Dear All, > > help appreciated, thanks in advance. > > how do you fit a pdf you have with a given pdf (say gamma). > > with the file attached, you can go like: > > a=open("AC-010_ED-1m37F100P0.txt","rb") > aa=a.read() > aaa=aa[1:-1].split(",") > data=[int(i) for i in aaa

[Numpy-discussion] how to fit a given pdf

2010-08-11 Thread Renato Fabbri
Dear All, help appreciated, thanks in advance. how do you fit a pdf you have with a given pdf (say gamma). with the file attached, you can go like: a=open("AC-010_ED-1m37F100P0.txt","rb") aa=a.read() aaa=aa[1:-1].split(",") data=[int(i) for i in aaa] if you do pylab.plot(data); pylab.show() T