[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #6232 [Analysis]: Make entropy-over-time graph
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs