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.neural.networks.training.pso
Class NeuralPSOWorker

    java.lang.Object
      org.encog.neural.networks.training.pso.NeuralPSOWorker

All Implemented Interfaces:
  EngineTask

    public class NeuralPSOWorker

extends Object
implements EngineTask

PSO multi-treaded worker. It allows PSO to offload all of the individual particle calculations to a separate thread. Contributed by: Geoffroy Noel https://github.com/goffer-looney

Author:
  Geoffroy Noel

Constructor Summary
`NeuralPSOWorker(NeuralPSO neuralPSO, int particleIndex, boolean init)` Constructor.

Method Summary
`void` | `run()` Update the particle velocity, position and personal best.

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

Constructor Detail

### NeuralPSOWorker

    public NeuralPSOWorker(NeuralPSO neuralPSO,
                           int particleIndex,
                           boolean init)

  Constructor.

  Parameters:
    `neuralPSO` - the training algorithm
    `particleIndex` - the index of the particle in the swarm
    `init` - true for an initialisation iteration

Method Detail

### run

    public final void run()

  Update the particle velocity, position and personal best.

  Specified by:
    `run` in interface `EngineTask`

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 © 2014. All Rights Reserved.