Cool concept! But what this doesn't take into account is that in cricket, the previous balls may have set up the batsman for the dismissal delivery.
Classic example is bowling bouncers followed by a fuller delivery. In this case, just throwing a yorker on the bowling machine would probably not get the batsman out.