The codes and demo examples for the manuscript 'Gaussian Process functional regression modelling for Batch data'.

demo.m: an simple demo example of GPFR, which reads training data from train.data and test data from test.data

train.data: training data file. In which:
	Row 1, Col 1: number of training curves: i
	Row 1, Col 2: the dimention of the known class variable U: j
	Row 1, Col 3: the number of sample points of training curves: k

	Row 2 - 2+j-1, Col 1: the vector of U corresponding to the first curve
	...
	Row 2 - 2+j-1, Col i: the vector of U corresponding to the i-th curve

	Row 2+j - 2+j+k-1, Col 1: the independent value x of the first curve
	...
	Row 2+j - 2+j+k-1, Col i: the independent value x of the i-th curve

	Row 2+j+k - 2+j+k+k-1, Col 1: the dependent value y of the first curve
	...
	Row 2+j+k - 2+j+k+k-1, Col i: the dependent value y of the i-th curve

test.data: test data file. (For sake of simplicity, we use the i-th curve of training curve as test curve.) In which:
	Row 1 - j, Col 1: the vector of U corresponding to the test curve
	Row j+1, Col 1: the number of output points of test curve: m
	Row j+2, Col 1: the number of test points of test curve: n
	Row j+3 - j+3+m-1, Col 1: the index of output points
	Row j+3+m - j+3+m+n-1, Col 1: the index of test points

example1.m: the detailed example of section 3.1 of the paper

examkstep.m: multiple-step-ahead forecasting, section 3.2 of the paper