org.encog.ca.universe.basic
Class BasicUniverse
- java.lang.Object
-
- org.encog.ml.BasicML
-
- org.encog.ca.universe.basic.BasicUniverse
-
- All Implemented Interfaces:
- java.io.Serializable, Universe, MLMethod, MLProperties
public class BasicUniverse extends BasicML implements Universe, java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringELEMENT_COUNT
-
Constructor Summary
Constructors Constructor and Description BasicUniverse(int height, int width, UniverseCellFactory theCellFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublecalculatePercentInvalid()java.lang.Objectclone()doublecompare(Universe otherWorld)voidcopy(Universe source)UniverseCellget(int row, int col)UniverseCellFactorygetCellFactory()intgetColumns()intgetRows()booleanisValid(int row, int col)voidrandomize()voidupdateProperties()Update any objeccts when a property changes.-
Methods inherited from class org.encog.ml.BasicML
getProperties, getPropertyDouble, getPropertyLong, getPropertyString, setProperty, setProperty, setProperty
-
-
-
-
Field Detail
-
ELEMENT_COUNT
public static final java.lang.String ELEMENT_COUNT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BasicUniverse
public BasicUniverse(int height, int width, UniverseCellFactory theCellFactory)
-
-
Method Detail
-
clone
public java.lang.Object clone()
-
getColumns
public int getColumns()
- Specified by:
getColumnsin interfaceUniverse
-
get
public UniverseCell get(int row, int col)
-
getCellFactory
public UniverseCellFactory getCellFactory()
- Specified by:
getCellFactoryin interfaceUniverse
-
updateProperties
public void updateProperties()
Description copied from interface:MLPropertiesUpdate any objeccts when a property changes.- Specified by:
updatePropertiesin interfaceMLProperties- Specified by:
updatePropertiesin classBasicML
-
calculatePercentInvalid
public double calculatePercentInvalid()
- Specified by:
calculatePercentInvalidin interfaceUniverse
-
-
DMelt 3.0 © DataMelt by jWork.ORG