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 MLProperties
public double getPropertyDouble(String name)
getPropertyDouble
in interface MLProperties
name
- The name of the property.public long getPropertyLong(String name)
getPropertyLong
in interface MLProperties
name
- The name of the specified property.public String getPropertyString(String name)
getPropertyString
in interface MLProperties
name
- The name of the property.public void setProperty(String name, double d)
setProperty
in interface MLProperties
name
- The name of the property.d
- The value of the property.public void setProperty(String name, long l)
setProperty
in interface MLProperties
name
- The name of the property.l
- The value of the property.public void setProperty(String name, String value)
setProperty
in interface MLProperties
name
- The name of the property.value
- The value of the property.public abstract void updateProperties()
MLProperties
updateProperties
in interface MLProperties
Copyright © 2014. All Rights Reserved.