Home > atmlab > circular > circ_axial.m

circ_axial

PURPOSE ^

SYNOPSIS ^

function alpha = circ_axial(alpha, p)

DESCRIPTION ^

 alpha = circ_axial(alpha, p)
   Transforms p-axial data to a common scale.

   Input:
     alpha    sample of angles in radians
     [p        number of modes]

   Output:
     alpha transformed data

 PHB 2009

 References:
   Statistical analysis of circular data, N. I. Fisher

 Circular Statistics Toolbox for Matlab

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

circ_axial.m

SOURCE CODE ^

0001 function alpha = circ_axial(alpha, p)
0002 %
0003 % alpha = circ_axial(alpha, p)
0004 %   Transforms p-axial data to a common scale.
0005 %
0006 %   Input:
0007 %     alpha    sample of angles in radians
0008 %     [p        number of modes]
0009 %
0010 %   Output:
0011 %     alpha transformed data
0012 %
0013 % PHB 2009
0014 %
0015 % References:
0016 %   Statistical analysis of circular data, N. I. Fisher
0017 %
0018 % Circular Statistics Toolbox for Matlab
0019 
0020 % By Philipp Berens, 2009
0021 % berens@tuebingen.mpg.de - www.kyb.mpg.de/~berens/circStat.html
0022 
0023 
0024 
0025 if nargin < 2
0026     p = 1;
0027 end
0028 
0029 alpha = mod(alpha*p,2*pi);

Generated on Mon 15-Sep-2014 13:31:28 by m2html © 2005