I have difficulties to understand how the number of peers is estimated.
I understand the function, except the third case.
uint32 CRoutingZone::estimateCount()
{
if( !isLeaf() )
return 0;
if( m_level < KBASE )
return (pow(2, m_level)*10);
//I don't understand from here
CRoutingZone* curZone = m_superZone->m_superZone->m_superZone;
float modify = ((float)curZone->getNumContacts())/20.0F;
return (pow( 2, m_level-2))*10*(modify);
}
Why going up to the third super zone to get contacts ? why the division by 20? why mlevel -2 on the last line?
Thanks in advance for your help and consideration.










Sign In
Register
