[graph-tool] Understanding avg_neighbour_corr

Santiago Videla santiago.videla at gmail.com
Fri Jun 5 18:48:46 CEST 2015


Hi,

On Fri, Jun 5, 2015 at 4:31 AM, Tiago de Paula Peixoto <tiago at skewed.de>
wrote:

> On 04.06.2015 23:01, Santiago Videla wrote:
> > From the docs I'd expect h[0][1] == np.mean(w) (which is the case) and
> h[1][1] == np.std(w) (which is not the case).
>
> As it is written in the documentation, the second value computed is the
> standard deviation of the _mean_, not the standard deviation of the
> _population_, which is what you are computing. The standard deviation of
> the mean is: std(w) / sqrt(len(w))
>

thanks! I missed that


>
> > In fact, I got to this issue trying to implement the analogous
> > function to graph_tool.correlations.avg_neighbour_corr but looking at
> > *in_neighbours* instead of *out_neighbours*
>
> This is trivial, just compute the avg_neighbour_corr with the reversed
> graph:
>
>   avg_neighbour_corr(GraphView(g, reversed=True), "in", "out")
>

sweet! I'm just starting with graph-tool and I didn't get to know the whole
api yet.

Regards,


>
> Best,
> Tiago
>
> --
> Tiago de Paula Peixoto <tiago at skewed.de>
>
>
> _______________________________________________
> graph-tool mailing list
> graph-tool at skewed.de
> http://lists.skewed.de/mailman/listinfo/graph-tool
>
>


-- 
Santiago Videla
http://www.linkedin.com/in/svidela
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.skewed.de/pipermail/graph-tool/attachments/20150605/e993cc1c/attachment.htm>


More information about the graph-tool mailing list