Density, truncated or rounded?

Computing metrics, community detection and data handling
Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
joshisanonymous
Posts:10
Joined:23 Feb 2017 21:34
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Density, truncated or rounded?

Post by joshisanonymous » 21 Nov 2017 19:16

I have some networks that are likely not dense at all and so the density statistic comes back as 0.000. I imagine that somewhere down the line, there's is an actual value, so what I'm wondering is whether the value shown is rounded to the nearest thousandth or truncated.

User avatar
eduramiba
Gephi Code Manager
Posts:1064
Joined:22 Mar 2010 15:30
Location:Madrid, Spain
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Density, truncated or rounded?

Post by eduramiba » 21 Nov 2017 19:36

Is this number in data laboratory or statistics report?

joshisanonymous
Posts:10
Joined:23 Feb 2017 21:34
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Density, truncated or rounded?

Post by joshisanonymous » 21 Nov 2017 20:19

Statistics report. I didn't even know you could view density in the data laboratory.

User avatar
eduramiba
Gephi Code Manager
Posts:1064
Joined:22 Mar 2010 15:30
Location:Madrid, Spain
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Density, truncated or rounded?

Post by eduramiba » 22 Nov 2017 11:05

Oh right, if it's density it's only available in the report. The number might be too low, the number format seems to be rounding to 3 decimal places: https://github.com/gephi/gephi/blob/mas ... nsity.java

joshisanonymous
Posts:10
Joined:23 Feb 2017 21:34
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Density, truncated or rounded?

Post by joshisanonymous » 23 Nov 2017 03:18

Thanks!

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable