From: Karthikesh R. <ka...@ja...> - 2004-06-02 16:10:21
|
Thankx Perry, now i an getting somewhere near, but there are still some issues, matlab and python (exact algorithms) result in different values :(, looking at it though, Warm regards karthik ----------------------------------------------------------------------- Karthikesh Raju, email: ka...@ja... Researcher, http://www.cis.hut.fi/karthik Helsinki University of Technology, Tel: +358-9-451 5389 Laboratory of Comp. & Info. Sc., Fax: +358-9-451 3277 Department of Computer Sc., P.O Box 5400, FIN 02015 HUT, Espoo, FINLAND ----------------------------------------------------------------------- On Wed, 2 Jun 2004, Perry Greenfield wrote: > > I'm guessing you are seeing overflow problems with the boolean > > representation which is the result of logical comparisons > > (which uses only 8 bit values) try: > > > > sum(float(not_equal... > > > > to eliminate that problem. > > > > Perry > > > arg, I should have said: > > sum(not_equal(...).astype(Float)) > > |