|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnct.graph.util.DegreePreservingRandomizer<java.lang.String,java.lang.Double>
nct.networkblast.ThresholdRandomizer
public class ThresholdRandomizer
| Field Summary | |
|---|---|
protected double |
threshold
|
| Fields inherited from class nct.graph.util.DegreePreservingRandomizer |
|---|
ignoreWeights, rand |
| Constructor Summary | |
|---|---|
ThresholdRandomizer(java.util.Random r,
double thresholdPercentage)
|
|
| Method Summary | |
|---|---|
boolean |
weightsSimilar(java.lang.Double A,
java.lang.Double B)
Checks to see if the given weights are "similar". |
| Methods inherited from class nct.graph.util.DegreePreservingRandomizer |
|---|
randomize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected double threshold
| Constructor Detail |
|---|
public ThresholdRandomizer(java.util.Random r,
double thresholdPercentage)
| Method Detail |
|---|
public boolean weightsSimilar(java.lang.Double A,
java.lang.Double B)
DegreePreservingRandomizer
weightsSimilar in class DegreePreservingRandomizer<java.lang.String,java.lang.Double>A - Weight a to be compared.B - Weight b to be compared.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||