public static void calculateNetwork(){
		double sum = 0;
		//first do the inputs to hidden
		for(int hidNode = 0; hidNode < numHiddenNodes; hidNode++){
			sum = 0;
			for(int inNode = 0; inNode < inHid.length; inNode++){
				sum += (input[inNode] * inHid[inNode][hidNode]);
			}
			sum += bias;
			hiddenOutput[hidNode] = activationFunction(sum);
		}
		
		//now to hidden layer to output
		for(int outNode = 0; outNode < numOutputs; outNode++){
			sum = 0;
			for(int hidNode = 0; hidNode < hidOut.length; hidNode++){
				sum += (hiddenOutput[hidNode] * hidOut[hidNode][outNode]);
			}
			sum += bias;
			output[outNode] = activationFunction(sum);
		}
	}