public float[] getNextTarget() {
float[] result = base.getNextInput();
if (corruptionRate != null && corruptionRate > 0) {
if (noise == null) {
noiseTensor = TensorFactory.tensor(base.getNextInput().length);
noise = new AparapiNoise(noiseTensor, base.getNextInput().length, corruptionRate, 0);
}
System.arraycopy(result, 0, noiseTensor.getElements(), 0, result.length);
noise.value(noiseTensor);
result = noiseTensor.getElements();