14 for (
unsigned int num_alts = 1; num_alts < 10; num_alts++)
15 for (
unsigned int off = 0; off < 10; off++)
21 weight_alts = -1.0 * num_alts /
delta;
22 else if (
delta >= 1.0)
23 weight_alts = 1.0 * num_alts *
delta;
25 weight_alts = 1.0 * num_alts;
28 "Paths: %u Offset: %u Delta: %5.2f SCORE: %f\n",
32 ((off + 1.0) / (weight_alts * weight_alts)));
int main()
Program to simulate results from GCP_get_desirability_of_path() for various plausible inputs.
static struct GNUNET_TIME_Relative delta