visual3d:documentation:pipeline:signal_commands:first_derivative
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:pipeline:signal_commands:first_derivative [2024/07/17 15:42] – removed sgranger | visual3d:documentation:pipeline:signal_commands:first_derivative [2024/11/11 14:05] (current) – wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== First Derivative ====== | ||
+ | |||
+ | Compute the first derivative at each point of a signal. | ||
+ | |||
+ | The command can be edited via text editor or via a dialog. The details on the command and the dialog are found below: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | < | ||
+ | First_Derivative | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | 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 first derivative is calculated using: | ||
+ | xDot(ti)= (x(ti+1)-x(ti-1))/ | ||
+ | </ | ||
+ | |||
+ | ==== Example: Velocity of the Centre of Mass ==== | ||
+ | |||
+ | The First_Derivative command is useful for calculating the velocity of targets, landmarks, etc. since velocity is the first derivative of position. The following example calculates the velocity of the center of mass using the First_Derivative command. | ||
+ | |||
+ | < | ||
+ | ! Given a signal representing the center of mass's position as follows: | ||
+ | Compute_Model_Based_Data | ||
+ | / | ||
+ | / | ||
+ | /SEGMENT= | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! /AXIS1=X | ||
+ | ! /AXIS2=Y | ||
+ | ! /AXIS3=Z | ||
+ | ; | ||
+ | |||
+ | ! The velocity of the center of mass can be computed as follows: | ||
+ | First_Derivative | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | |||
visual3d/documentation/pipeline/signal_commands/first_derivative.1721230963.txt.gz · Last modified: 2024/07/17 15:42 by sgranger