public DeltaRuleLearning( ActivationNetwork network ) { // check layers count if ( network.Layers.Length != 1 ) { throw new ArgumentException( "Invalid nuaral network. It should have one layer only." ); } this.network = network; }