If you use this software, please cite the manuscript: 

''Detection of anomalies in water networks by functional data analysis''

*The directory 'real case study' contains the file real_case_study.R with the functions for the real case study (Section 3.1).


*The directory 'simulation study' contains the functions for reproducing the simulation study:

	- The file simumodel1.R reproduces Figures and results in Section 2.4.3 and 
	Tables 1 and 2 of Section 3.2 (first and second part of the simulation study).
	
	- The file simumodel2.R reproduces the results of the third part of the simulation study of Section 3.2.


## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.

## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.

## You should have received a copy of the GNU General Public License
## along with this program.  If not, see <http://www.gnu.org/licenses/>.



