|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.azalient.api.b.trips.StrandTools
public class StrandTools
| Constructor Summary | |
|---|---|
StrandTools()
|
|
| Method Summary | |
|---|---|
static int |
dnaInt(double dna,
int n)
Given a dna value 0 .. |
static int |
dnaInt(ITrip trip,
Strand strand,
int n)
Given a trip, and the strand of DNA to use, return a value between 0 and n-1, taken from a uniform distribution |
static double |
perturbCost(ITrip trip,
int exitIndex,
double baseCost,
boolean perturbHere)
Given a trip and a base cost, return the "perturbed" cost using a strand of DNA that varies with the exit index. |
static double |
positiveNormalDistributionValue(ITrip trip,
Strand strand,
double mean,
double pVar)
Given a trip, and the strand of DNA to use, return a value from a gaussian distribution using the given mean and proportional std dev. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StrandTools()
| Method Detail |
|---|
public static int dnaInt(ITrip trip,
Strand strand,
int n)
public static int dnaInt(double dna,
int n)
public static double positiveNormalDistributionValue(ITrip trip,
Strand strand,
double mean,
double pVar)
public static double perturbCost(ITrip trip,
int exitIndex,
double baseCost,
boolean perturbHere)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||