The invention relates to a computer-implemented method for checking and providing a computer-generated function, said method comprising the following method steps:-providing a known sensor
signal,-providing a computer-generated function,-modifying the known sensor
signal in view of a non-
functional requirement, applying a computer-generated function to the known sensor
signal and generating a result, applying the computer-generated function to the changed sensor signal and generating a result, checking whether the generated result lies in the respective
target range, if one of the generated results does not lie in the
target range, determining whether the
target range is in the target range, and if the other of the generated results does not lie in the target range, determining whether the target range is in the target range. Discarding the computer-generated function if all the resulting results lie in the respective nominal range, outputting the computer-generated function if all the resulting results lie in the respective nominal range; a
computer program product containing a computer generated function; a computer
system configured to execute a computer generated function; and a
train, the
train having a computer
system, the computer
system being configured to execute a computer-generated function.