function kern = matern52KernParamInit(kern)

% MATERN52KERNPARAMINIT MATERN52 kernel parameter initialisation.
%
%	Description:
%	The Matern class of kernels is a wide class with different
%	degrees of freedom parameters. This is the specific case where nu
%	= 5/2.
%	
%	Given
%	r = sqrt((x_i - x_j)'*(x_i - x_j))
%	
%	we have
%	k(x_i, x_j) = sigma2*(1+sqrt(5)*r/l+5r^2/(3l^2))*exp(-sqrt(5)*r/l)
%	
%	The parameters are sigma2, the process variance (kern.variance),
%	and l, the length scale (kern.lengthScale).
%	
%
%	KERN = MATERN52KERNPARAMINIT(KERN) initialises the matern kernel
%	with nu=5/2 kernel structure with some default parameters.
%	 Returns:
%	  KERN - the kernel structure with the default parameters placed in.
%	 Arguments:
%	  KERN - the kernel structure which requires initialisation.
%	
%
%	See also
%	KERNCREATE, KERNPARAMINIT


%	Copyright (c) 2006 Neil D. Lawrence
% 	matern52KernParamInit.m CVS version 1.2
% 	matern52KernParamInit.m SVN version 1
% 	last update 2011-06-16T07:23:44.000000Z

kern.variance = 1;
kern.lengthScale = 1;
kern.nParams = 2;

kern.transforms.index = [1 2];
kern.transforms.type = optimiDefaultConstraint('positive');

kern.isStationary = true;