Table of Contents
Second Derivative
Overview
The Second Derivative pipeline command can be used to compute the second derivative of a signal at each point through the signal. This command may be used to determine the linear or angular acceleration of a signal when given its linear or angular position.
Pipeline Command
The Second Derivative command can be found in the Pipeline Workshop within the Signal Math folder as so:
Second_Derivative ! /SIGNAL_TYPES= ! /SIGNAL_FOLDER=ORIGINAL ! /SIGNAL_NAMES= ! /RESULT_TYPES= ! /RESULT_FOLDERS=PROCESSED ! /RESULT_NAME= ! /APPLY_AS_SUFFIX_TO_SIGNAL_NAME= ;
Command Parameters
The parameters that can be used to control the command are as follows:
| Signal Types | The type of signal to be evaluated |
| Signal Names | The name of the signal to be evaluated |
| Signal Folder | The name of the signal folder |
| Result Types | The type of the resulting signal |
| Result Folders | The name of the resulting folder |
| Result Name | The name of the resulting signal |
| Apply as Suffix To Signal Name | The result is given the same name as the original signal with the suffix added |
Dialog
The command can be edited via text editor or via a dialog. The details on the command and the dialog are found below:
Notes
The first and last data points become DATA_NOT_FOUND (identified in the C3D file as a POINT Reliability value of –1).
Calculation Method: Derivatives are calculated using Finite Difference Algorithms.
Given the signal:
x(ti) for i=1, 2, …, n The second derivative is calculated using:
xDDot(ti)= (x(ti+1)-2x(ti)+x(ti-1))/( (ti+1)-(ti) )^2
Example: Acceleration of the Center of Mass
The Second_Derivative command is useful for calculating the acceleration of targets, landmarks, etc., since acceleration is the second derivative of position. The following example calculates the acceleration of the center of mass by using the Second_Derivative command.
! Given a signal representing the center of mass's position as follows: Compute_Model_Based_Data /RESULT_NAME=COM /FUNCTION=MODEL_COG /SEGMENT= /REFERENCE_SEGMENT= ! /RESOLUTION_COORDINATE_SYSTEM=LAB ! /USE_CARDAN_SEQUENCE=FALSE ! /NORMALIZATION=FALSE ! /NORMALIZATION_METHOD= ! /NORMALIZATION_METRIC= ! /NEGATEX=FALSE ! /NEGATEY=FALSE ! /NEGATEZ=FALSE ! /AXIS1=X ! /AXIS2=Y ! /AXIS3=Z ; ! The acceleration of the center of mass can be computed as follows: Second_Derivative /SIGNAL_TYPES=LINK_MODEL_BASED /SIGNAL_NAMES=COM ! /SIGNAL_FOLDER=ORIGINAL /RESULT_NAMES=COM_ACCELERATION /RESULT_TYPES=LINK_MODEL_BASED /RESULT_FOLDER=ACCELERATION ! /RESULT_SUFFIX= ;

