* @param output The toutpu
*/
public void init(final int neuronCount, final double[] weights,
final double[] output) {
if (neuronCount != output.length) {
throw new NeuralNetworkError("Neuron count(" + neuronCount
+ ") must match output count(" + output.length + ").");
}
if ((neuronCount * neuronCount) != weights.length) {
throw new NeuralNetworkError("Weight count(" + weights.length
+ ") must be the square of the neuron count(" + neuronCount
+ ").");
}
this.neuronCount = neuronCount;