Home > src > main.m

main

PURPOSE ^

% Visual Clustering of Parallel Coordinates

SYNOPSIS ^

function[subM, valM]=main(M,m,q_alpha,q_d,alpha_c)

DESCRIPTION ^

% Visual Clustering of Parallel Coordinates
 @author Mazurek/Bartalsky
% main.m parameters

 * *Input:*  
 * _M_ ... parallel coordinates of a dataset
 * _m_ ... number of subCoordinates
 * _q_alpha_ ... a constant parameter for force computation  
 * _q_d_ ... a constant parameter for force computation 
 * _alpha_c_ ... The share of the two energy terms.
 * *Ouput:*
 * _subM_ ... the interpolated subCoords before the computation
 * _valM_ ... the computed subCoords after the computation

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 %% Visual Clustering of Parallel Coordinates
0002 % @author Mazurek/Bartalsky
0003 %% main.m parameters
0004 %
0005 % * *Input:*
0006 % * _M_ ... parallel coordinates of a dataset
0007 % * _m_ ... number of subCoordinates
0008 % * _q_alpha_ ... a constant parameter for force computation
0009 % * _q_d_ ... a constant parameter for force computation
0010 % * _alpha_c_ ... The share of the two energy terms.
0011 % * *Ouput:*
0012 % * _subM_ ... the interpolated subCoords before the computation
0013 % * _valM_ ... the computed subCoords after the computation
0014 
0015 function[subM, valM]=main(M,m,q_alpha,q_d,alpha_c)
0016 
0017 % Read out the dimensions
0018 rows = size(M,1);
0019 columns = size(M,2);
0020 
0021 % Choose the number of neighbours for force computation.
0022 nl=30;
0023 
0024 %% Generate SubCoords
0025 subM = generateSubCoords(M,m);
0026 
0027 %% Compute the Force
0028 [forceM, initFM] = computeForce(M, subM, nl, q_alpha, q_d);
0029 
0030 %% Setup the system of linear equations.
0031 
0032 for x=1:(columns - 1)
0033     valM(x).subs = generateEQ(M(:,x:(x+1)), subM(x).subs, forceM(:, (m*x+(x-(m-1))):(m*x+x)),initFM(:, (m*x+(x-(m-1))):(m*x+x)), alpha_c); 
0034 end
0035 
0036 end
0037

Generated on Tue 31-May-2016 19:24:56 by m2html © 2005