org.encog.ml.ea.score.parallel
public class ParallelScore extends Object implements MultiThreadable
| Constructor and Description |
|---|
ParallelScore(Population thePopulation,
GeneticCODEC theCODEC,
List<AdjustScore> theAdjusters,
CalculateScore theScoreFunction,
int theThreadCount)
Construct the parallel score calculation object.
|
| Modifier and Type | Method and Description |
|---|---|
List<AdjustScore> |
getAdjusters() |
GeneticCODEC |
getCodec() |
Population |
getPopulation() |
CalculateScore |
getScoreFunction() |
int |
getThreadCount() |
void |
process()
Calculate the scores.
|
void |
setThreadCount(int numThreads)
Set the number of threads to use.
|
public ParallelScore(Population thePopulation, GeneticCODEC theCODEC, List<AdjustScore> theAdjusters, CalculateScore theScoreFunction, int theThreadCount)
thePopulation - The population to score.theCODEC - The CODEC to use.theAdjusters - The score adjusters to use.theScoreFunction - The score function.theThreadCount - The requested thread count.public Population getPopulation()
public CalculateScore getScoreFunction()
public GeneticCODEC getCodec()
public void process()
public List<AdjustScore> getAdjusters()
public int getThreadCount()
getThreadCount in interface MultiThreadablepublic void setThreadCount(int numThreads)
MultiThreadablesetThreadCount in interface MultiThreadablenumThreads - The desired thread count.Copyright © 2014. All Rights Reserved.