A neural network approach for the detection of the locking position in RFX