Home > distances > preprocessSystems.m
This is a helper function for the distance calulation functions. This allows
function [angles,sigma,systems,mParam] = preprocessSystems(sType,varargin)
This is a helper function for the distance calulation functions. This allows
the distance functions to be called with different types of argumennts.
INPUTS
sType - Distance type 0: Subspace Angle Distance, 1: Binet Cauchy Distance
varargin - All the arguments from the calling function
OUTPUTS
angles - Subspace angles for subspace angle distances,
Solution of Sylvester equation for binet cauchy kernels
sigma - Sigma for binet cauchy kernels
systems - Original input systems
mParam - Metric parameters. Returns the default paramters if no metric parameters are passed.
If metric paramters are passed, then it returns the input metric parameters. Note that
for the case of subspace angle distance, no metric parameters are returned. The angles
are calculated based on the paramters and returned.
EXAMPLE
% Written by : Avinash Ravichandran
% $DATE : 27-Jul-2011 12:08:21 $
% $REVISION : 1.00 $
This function calls:
This function is called by: