Changed arrays to be of supertype rather than doubling code for ricianNoise and gaussianNoise.