Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.encog.ml
Class BasicML

    java.lang.Object
      org.encog.ml.BasicML

All Implemented Interfaces:
  Serializable, MLMethod, MLProperties

Direct Known Subclasses:
  AbstractPNN, ART, BAM, BasicNetwork, CPN, NEATNetwork, RBFNetwork, SOM, SVM, ThermalNetwork

    public abstract class BasicML

extends Object
implements MLMethod, MLProperties, Serializable

A class that provides basic property functionality for the MLProperties interface.

See Also:
  Serialized Form

Constructor Summary
`BasicML()`

Method Summary
`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.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### BasicML

    public BasicML()

Method Detail

### getProperties

    public final Map<String,String> getProperties()

  Specified by:
    `getProperties` in interface `MLProperties`
  Returns:
    A map of all properties.

### getPropertyDouble

    public final double getPropertyDouble(String name)

  Get the specified property as a double.

  Specified by:
    `getPropertyDouble` in interface `MLProperties`
  Parameters:
    `name` - The name of the property.
  Returns:
    The property as a double.

### getPropertyLong

    public final long getPropertyLong(String name)

  Get the specified property as a long.

  Specified by:
    `getPropertyLong` in interface `MLProperties`
  Parameters:
    `name` - The name of the specified property.
  Returns:
    The value of the specified property.

### getPropertyString

    public final String getPropertyString(String name)

  Get the specified property as a string.

  Specified by:
    `getPropertyString` in interface `MLProperties`
  Parameters:
    `name` - The name of the property.
  Returns:
    The value of the property.

### setProperty

    public final void setProperty(String name,
                                  double d)

  Set a property as a double.

  Specified by:
    `setProperty` in interface `MLProperties`
  Parameters:
    `name` - The name of the property.
    `d` - The value of the property.

### setProperty

    public final void setProperty(String name,
                                  long l)

  Set a property as a long.

  Specified by:
    `setProperty` in interface `MLProperties`
  Parameters:
    `name` - The name of the property.
    `l` - The value of the property.

### setProperty

    public final void setProperty(String name,
                                  String value)

  Set a property as a double.

  Specified by:
    `setProperty` in interface `MLProperties`
  Parameters:
    `name` - The name of the property.
    `value` - The value of the property.

### updateProperties

    public abstract void updateProperties()

  Description copied from interface: `MLProperties`
  Update any objeccts when a property changes.

  Specified by:
    `updateProperties` in interface `MLProperties`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2011. All Rights Reserved.