public class StringProfile extends Profile
| Modifier and Type | Field and Description |
|---|---|
java.lang.String[] |
profile
Array of binary strings defining the number of steps above the minimum
value a profile is.
|
| Constructor and Description |
|---|
StringProfile(GeneticAlgorithm alg,
int afType,
int seg,
int numPeriod) |
StringProfile(GeneticAlgorithm alg,
int afType,
int seg,
int numPeriod,
java.lang.String[] profile) |
| Modifier and Type | Method and Description |
|---|---|
static StringProfile |
createRandomProfile(GeneticAlgorithm alg,
int afType,
int seg,
int numPeriod) |
Profile[] |
crossover(Profile mate) |
void |
decrementAF(int numInc,
int period) |
void |
fillDefault() |
float |
getAF(int period) |
java.lang.String |
getBinaryAF(int period) |
Profile |
getDeepCopy() |
void |
incrementAF(int numInc,
int period) |
void |
mutate() |
void |
setAF(float val,
int period) |
void |
setAF(int val,
int period) |
void |
setAF(java.lang.String val,
int period) |
void |
setAFArray(double[] newArray) |
getAFLowerRange, getAFUpperRange, getNumPeriods, setConfidencePctpublic final java.lang.String[] profile
public StringProfile(GeneticAlgorithm alg, int afType, int seg, int numPeriod)
public StringProfile(GeneticAlgorithm alg, int afType, int seg, int numPeriod, java.lang.String[] profile)
public java.lang.String getBinaryAF(int period)
getBinaryAF in class Profilepublic void incrementAF(int numInc,
int period)
public void decrementAF(int numInc,
int period)
public void fillDefault()
public void setAFArray(double[] newArray)
public Profile getDeepCopy()
getDeepCopy in class Profilepublic static StringProfile createRandomProfile(GeneticAlgorithm alg, int afType, int seg, int numPeriod)