org.encog.ml.genetic.innovation
Class BasicInnovationList
java.lang.Object
org.encog.ml.genetic.innovation.BasicInnovationList
- All Implemented Interfaces:
- Serializable, InnovationList
- Direct Known Subclasses:
- NEATInnovationList
public class BasicInnovationList
- extends Object
- implements InnovationList, Serializable
Provides basic functionality for a list of innovations.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicInnovationList
public BasicInnovationList()
add
public final void add(Innovation innovation)
- Add an innovation.
- Specified by:
add in interface InnovationList
- Parameters:
innovation - The innovation to add.
get
public final Innovation get(int id)
- Get a specific innovation, by index.
- Specified by:
get in interface InnovationList
- Parameters:
id - The innovation index id.
- Returns:
- The innovation.
getInnovations
public final List<Innovation> getInnovations()
- Specified by:
getInnovations in interface InnovationList
- Returns:
- A list of innovations.
Copyright © 2012. All Rights Reserved.