Home > hfrc > matlab > @HFRC > principal_axis.m

principal_axis

PURPOSE ^

PRINCIPAL_AXIS - Finds principal axis of each grid point.

SYNOPSIS ^

function [a, LL] = principal_axis( h )

DESCRIPTION ^

 PRINCIPAL_AXIS - Finds principal axis of each grid point.

 Usage: [angles, variances] = principal_axis( hfrc_obj )

 This function returns the direction of the principal axis (in radians)
 of each grip point of the HFRC object.  It removes bad data before
 doing the calculation.  The mean of each series is also removed before
 calculation.

 It will also optionally return the variances explained by the major and
 minor axes.

 The negative of the angles returned can be used in rotate to place each
 series on it's principal axis.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

     $Id: principal_axis.m,v 1.1 2003-06-04 00:40:04 dmk Exp $    

 Copyright (C) 2001 David M. Kaplan
 Licence: GPL (Gnu Public License)

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 18-Dec-2006 07:26:46 by m2html © 2003