* @param network The neuroph network to use.
*/
public FlatNetworkLearning(NeuralNetwork network) {
FlatNetworkPlugin plugin = (FlatNetworkPlugin) network
.getPlugin(FlatNetworkPlugin.class);
FlatNetwork flat = plugin.getFlatNetwork();
if (this.flat == null)
throw new EncogEngineError(
"This learning rule only works with a network that has a FlatNetworkPlugin attached.");
init(flat);
}