Monday, 15 August 2011

java - how to link elements with a certain probability inversely proportional to a variable -



java - how to link elements with a certain probability inversely proportional to a variable -

i have 2 array lists , link element first array element of sec array list. elements have property, a.

the status is: element of first array high value of element.geta() prefers link element of sec array low value of a.

i understand selecting element according biased probability can calculate cumulative probabilities , selecting nodes probability proportional trust

let's see if more clear: think preferential attachment mechanism. in case, node links node probability increments grade of chosen node. hack preferential attachment , bias probability node link node not on property of sec node, on property of first node. , want inverse, little node prefers link big nodes , big nodes prefers link little nodes.

best regards, simone

[edited]

for each pair, calculate difference (or absolute difference, or difference squared). utilize difference weighting select 1 pair.

remove pairs no longer valid , repeat.

java probability-theory

No comments:

Post a Comment