function [params, names] = wienerKernExtractParam(kern)

% WIENERKERNEXTRACTPARAM Extract parameters from the WIENER kernel structure.
%
%	Description:
%
%	PARAM = WIENERKERNEXTRACTPARAM(KERN) extracts parameters from the
%	wiener kernel structure into a vector of parameters for
%	optimisation.
%	 Returns:
%	  PARAM - vector of parameters extracted from the kernel. If the
%	   field 'transforms' is not empty in the kernel structure, the
%	   parameters will be transformed before optimisation (for example
%	   positive only parameters could be logged before being returned).
%	 Arguments:
%	  KERN - the kernel structure containing the parameters to be
%	   extracted.
%
%	[PARAM, NAMES] = WIENERKERNEXTRACTPARAM(KERN) extracts parameters
%	and parameter names from the wiener kernel structure.
%	 Returns:
%	  PARAM - vector of parameters extracted from the kernel. If the
%	   field 'transforms' is not empty in the kernel structure, the
%	   parameters will be transformed before optimisation (for example
%	   positive only parameters could be logged before being returned).
%	  NAMES - cell array of strings containing names for each parameter.
%	 Arguments:
%	  KERN - the kernel structure containing the parameters to be
%	   extracted.
%	
%	
%
%	See also
%	% SEEALSO WIENERKERNPARAMINIT, WIENERKERNEXPANDPARAM, KERNEXTRACTPARAM, SCG, CONJGRAD


%	Copyright (c) 2009 Neil D. Lawrence
% 	wienerKernExtractParam.m SVN version 265
% 	last update 2009-03-08T08:54:28.000000Z
params = [kern.variance];
if nargout > 1
  names={'variance'};
end