org.encog.ca.universe.basic

## Class BasicDiscreteCell

- java.lang.Object
- - org.encog.ca.universe.basic.BasicDiscreteCell

- All Implemented Interfaces:
    Serializable, DiscreteCell, UniverseCell

      public class BasicDiscreteCell
      extends Object
      implements DiscreteCell, Serializable

  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BasicDiscreteCell(int theSize, int theElementCount)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `copy(UniverseCell sourceCell)`
    `double` | `get(int index)`
    `double` | `getAvg()`
    `void` | `randomize()`
    `void` | `set(int i, double d)`
    `void` | `set(int idx, double[] d)`
    `int` | `size()`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### BasicDiscreteCell

          public BasicDiscreteCell(int theSize,
                           int theElementCount)

  - ### Method Detail

    - #### get

          public double get(int index)

      Specified by:
        `get` in interface `UniverseCell`

    - #### randomize

          public void randomize()

      Specified by:
        `randomize` in interface `UniverseCell`

    - #### copy

          public void copy(UniverseCell sourceCell)

      Specified by:
        `copy` in interface `UniverseCell`

    - #### getAvg

          public double getAvg()

      Specified by:
        `getAvg` in interface `UniverseCell`

    - #### set

          public void set(int i,
                 double d)

      Specified by:
        `set` in interface `UniverseCell`

    - #### size

          public int size()

      Specified by:
        `size` in interface `UniverseCell`

    - #### set

          public void set(int idx,
                 double[] d)

      Specified by:
        `set` in interface `UniverseCell`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2014. All Rights Reserved.