OCRNeuralNetwork/src/com/conordevilly/ocr/neuralnetwork/Neuron.java
public void process() throws SizeMismatchException{
		output = 0;
		
		//Check that the size of the weights and inputs match before processing 
		if(!arrSizeMatch(weights, inputs)) throw new SizeMismatchException(inputs.size(), weights.size());
		
		//Make the output = sum of all inputs once their weights are factored in
		for(int i = 0; i < inputs.size(); i++){
			output += calcInput(i);
		}
		output *= bias;
	}
//Should probably be renamed to summation to reflect NN concepts
Should probably be renamed to summation to reflect NN concepts
Should probably be renamed to summation to reflect NN concepts
public void process() throws SizeMismatchException{
		output = 0;
		if(!arrSizeMatch(weights, inputs)) throw new SizeMismatchException(inputs.size(), weights.size());
		for(int i = 0; i < inputs.size(); i++){
			output += calcInput(i);
		}
		output *= bias;
	}
public void process ( ) throws SizeMismatchException { output = 0 ; if ( ! arrSizeMatch ( weights , inputs ) ) throw new SizeMismatchException ( inputs . size ( ) , weights . size ( ) ) ; for ( int i = 0 ; i < inputs . size ( ) ; i ++ ) { output += calcInput ( i ) ; } output *= bias ; }
Should probably be renamed to summation to reflect NN concepts
Should probably be renamed to summation to reflect NN concepts
//Check that the size of the weights and inputs match before processing  //Make the output = sum of all inputs once their weights are factored in