org.encog.ml
public abstract class BasicML extends Object implements MLMethod, MLProperties, Serializable
| Constructor and Description |
|---|
BasicML() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getProperties() |
double |
getPropertyDouble(String name)
Get the specified property as a double.
|
long |
getPropertyLong(String name)
Get the specified property as a long.
|
String |
getPropertyString(String name)
Get the specified property as a string.
|
void |
setProperty(String name,
double d)
Set a property as a double.
|
void |
setProperty(String name,
long l)
Set a property as a long.
|
void |
setProperty(String name,
String value)
Set a property as a double.
|
abstract void |
updateProperties()
Update any objeccts when a property changes.
|
public Map<String,String> getProperties()
getProperties in interface MLPropertiespublic double getPropertyDouble(String name)
getPropertyDouble in interface MLPropertiesname - The name of the property.public long getPropertyLong(String name)
getPropertyLong in interface MLPropertiesname - The name of the specified property.public String getPropertyString(String name)
getPropertyString in interface MLPropertiesname - The name of the property.public void setProperty(String name, double d)
setProperty in interface MLPropertiesname - The name of the property.d - The value of the property.public void setProperty(String name, long l)
setProperty in interface MLPropertiesname - The name of the property.l - The value of the property.public void setProperty(String name, String value)
setProperty in interface MLPropertiesname - The name of the property.value - The value of the property.public abstract void updateProperties()
MLPropertiesupdateProperties in interface MLPropertiesCopyright © 2014. All Rights Reserved.