Provided methods recovery of functional dependence with a specified discontinuity. Application of the algorithm of building function with given discontinuity is shown. The first method is based on a formal function minimization by random search. The second uses the information content of the data.