The use of the function ch.perm is only possible under the terms of the license MIT LICENSE When using the procedure chp.perm - please cite the article: W. Sommer, K. Stapor, , G. Konczak, K. Kotowski, P. Fabian, J. Ochab, A. Bereś, G. Ślusarczyk . Changepoint detection in noisy data using a novel residuals permutation-based method (RESPERM): Benchmarking and application. Use of the function: chp.perm(x,y) where x, y are numerical vectors with the same number of components. Results: the position of the changepoint. Below the procedure code in chp.perm.R file there is a function call on example data from the data.csv file is presented.