org.encog.engine.concurrency.calc
Class ConcurrentCalculate

java.lang.Object
  extended by org.encog.engine.concurrency.calc.ConcurrentCalculate

public final class ConcurrentCalculate
extends Object

Class used to provide concurrent calculation between the CPU and OpenCL devices.


Method Summary
 double calculateError()
           
static ConcurrentCalculate getInstance()
           
 FlatNetwork getNetwork()
           
 EngineIndexableSet getTrainingData()
           
 void initCL()
          Init for OpenCL.
 boolean isUseOpenCL()
           
 void setNetwork(FlatNetwork network)
          Set the current network.
 void setTrainingData(EngineIndexableSet trainingData)
          Set the current training data.
 void setUseOpenCL(boolean useOpenCL)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ConcurrentCalculate getInstance()
Returns:
The instance.

calculateError

public double calculateError()
Returns:
THe calculated error.

getNetwork

public FlatNetwork getNetwork()
Returns:
The current network.

getTrainingData

public EngineIndexableSet getTrainingData()
Returns:
The current training data.

initCL

public void initCL()
Init for OpenCL.


isUseOpenCL

public boolean isUseOpenCL()
Returns:
the useOpenCL

setNetwork

public void setNetwork(FlatNetwork network)
Set the current network.

Parameters:
network - The current network.

setTrainingData

public void setTrainingData(EngineIndexableSet trainingData)
Set the current training data.

Parameters:
trainingData - The current training data.

setUseOpenCL

public void setUseOpenCL(boolean useOpenCL)
Parameters:
useOpenCL - the useOpenCL to set


Copyright © 2011. All Rights Reserved.