[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r18296 - gnunet/src/nse
From: |
gnunet |
Subject: |
[GNUnet-SVN] r18296 - gnunet/src/nse |
Date: |
Thu, 24 Nov 2011 12:58:55 +0100 |
Author: bartpolot
Date: 2011-11-24 12:58:55 +0100 (Thu, 24 Nov 2011)
New Revision: 18296
Modified:
gnunet/src/nse/gnunet-service-nse.c
Log:
Removed variance debug, initialized variance in WEST method
Modified: gnunet/src/nse/gnunet-service-nse.c
===================================================================
--- gnunet/src/nse/gnunet-service-nse.c 2011-11-24 11:54:42 UTC (rev 18295)
+++ gnunet/src/nse/gnunet-service-nse.c 2011-11-24 11:58:55 UTC (rev 18296)
@@ -317,6 +317,7 @@
mean = 0.0;
sum = 0.0;
sumweight = 0.0;
+ variance = 0.0;
for (i = 0; i < estimate_count; i++)
{
j = (estimate_index - i + HISTORY_SIZE) % HISTORY_SIZE;
@@ -353,10 +354,6 @@
{
mean = sum / estimate_count;
variance = (vsq - mean * sum) / (estimate_count - 1.0); // terrible for
numerical stability...
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "(%f - %f) / %u = %f\n",
- vsq, mean * sum, estimate_count - 1, variance);
-
}
#endif
GNUNET_assert (variance >= 0);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r18296 - gnunet/src/nse,
gnunet <=