Wrong formula in price networks?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Wrong formula in price networks?

Feelx234
Hello,

If I compare the implementation for the probability in the
graph/generation/graph_price.hh
which is (can be found in multiple places)
p = pow(Deg()(w, g) + c, gamma);

With what is written in the documentation
https://graph-tool.skewed.de/static/doc/generation.html#graph_tool.generation.price_network
I wonder whether it should actually be (the constant outside the power) or
is the documentation wrong?
p = pow(Deg()(w, g), gamma) + c;

Greetings

Feelx234



--
Sent from: https://nabble.skewed.de/
_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool
Reply | Threaded
Open this post in threaded view
|

Re: Wrong formula in price networks?

Tiago Peixoto
Administrator
Am 23.07.20 um 11:17 schrieb Feelx234:

> Hello,
>
> If I compare the implementation for the probability in the
> graph/generation/graph_price.hh
> which is (can be found in multiple places)
> p = pow(Deg()(w, g) + c, gamma);
>
> With what is written in the documentation
> https://graph-tool.skewed.de/static/doc/generation.html#graph_tool.generation.price_network
> I wonder whether it should actually be (the constant outside the power) or
> is the documentation wrong?
> p = pow(Deg()(w, g), gamma) + c;
Indeed there is a discrepancy!

I believe the most appropriate version is the one with the constant
outside the power, as written in the documentation. I'll fix the code
shortly.

Best,
Tiago

--
Tiago de Paula Peixoto <[hidden email]>


_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool

signature.asc (849 bytes) Download Attachment
--
Tiago de Paula Peixoto <tiago@skewed.de>