|
Venice 0.7beta | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mov.analyser.gp.GeneticProgramme
public class GeneticProgramme
The Genetic Programme creates and breeds random paper trading individuals. This class runs the GP.
Individual,
Mutator| Constructor Summary | |
|---|---|
GeneticProgramme(GPQuoteBundle quoteBundle,
GPGondolaSelection GPGondolaSelection,
OrderCache orderCache,
TradingDate startDate,
TradingDate endDate,
Money initialCapital,
Money stockValue,
int numberStocks,
Money tradeCost,
int breedingPopulationSize,
java.lang.String tradeValueBuy,
java.lang.String tradeValueSell)
Get ready to run the GP. |
|
| Method Summary | |
|---|---|
Individual |
getBreedingIndividual(int index)
Get one of the current generation's breeding individual. |
int |
getBreedingPopulationSize()
Get the size of the current breeding population. |
int |
getNextBreedingPopulationSize()
Get the size of the next generation's breeding population. |
int |
nextGeneration()
Enter the next generation. |
void |
nextIndividual(Expression buyRule,
Expression sellRule,
int mutations)
Run one iteration of the GP. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GeneticProgramme(GPQuoteBundle quoteBundle,
GPGondolaSelection GPGondolaSelection,
OrderCache orderCache,
TradingDate startDate,
TradingDate endDate,
Money initialCapital,
Money stockValue,
int numberStocks,
Money tradeCost,
int breedingPopulationSize,
java.lang.String tradeValueBuy,
java.lang.String tradeValueSell)
quoteBundle - the historical quote dataGPGondolaSelection - UI containing user's desired expression probabilitiesorderCache - cache of ordered symbolsstartDate - start date of tradingendDate - last date of tradinginitialCapital - initial capital in the portfoliostockValue - the rough value of each stock holdingnumberStocks - number of stocks in the portfoliotradeCost - the cost of a tradebreedingPopulationSize - number of individuals that can breedtradeValueBuy - value for buying a stocktradeValueSell - value for selling a stock| Method Detail |
|---|
public void nextIndividual(Expression buyRule,
Expression sellRule,
int mutations)
public int nextGeneration()
public Individual getBreedingIndividual(int index)
index - of the breeding individual
public int getBreedingPopulationSize()
public int getNextBreedingPopulationSize()
|
Venice 0.7beta | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||