[tor-bugs] #6232 [Analysis]: Make entropy-over-time graph

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Wed Jul 4 16:02:41 UTC 2012


#6232: Make entropy-over-time graph
-------------------------+--------------------------------------------------
 Reporter:  arma         |          Owner:              
     Type:  enhancement  |         Status:  needs_review
 Priority:  normal       |      Milestone:              
Component:  Analysis     |        Version:              
 Keywords:               |         Parent:              
   Points:               |   Actualpoints:              
-------------------------+--------------------------------------------------

Comment(by karsten):

 There seems to be a problem with Python 2.6.6 which cannot convert float
 to Decimal directly.  lunar and asn rewrote that part:

 {{{
 -             entropy +=
 -(router.probability*Decimal(math.log(router.probability, 2)))
 +             entropy +=
 -(router.probability*router.probability.ln()/Decimal('2').ln())
 }}}

 Can you confirm that this code is still correct?

 Do you want to add a new task-6232 directory in metrics-tasks.git and add
 your code there?  You could send me a patch generated with git --format-
 patch that I'd merge into the metrics-tasks repo.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/6232#comment:5>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list