Array and Matrix Functions: Difference between revisions

From Software Product Documentation
Jump to navigation Jump to search
(Created page with " ==Arrays== ===Vector=== '''Vector'''(a,b, etc) creates a vector of the number of components specified :! Create a metric signal with 2 components and one frame :[Metric_E...")
 
No edit summary
Line 1: Line 1:
{{Languages}}
{| align="right"
| __TOC__
|}


==Arrays==
==Arrays==
Line 32: Line 37:


:'''unit_vector (a, b, etc)''' -- creates a unit vector of the number of components specified:
:'''unit_vector (a, b, etc)''' -- creates a unit vector of the number of components specified:
==Rotation Matrices==
===Rotation Multiply==
'''Rotation_Multiply'''(a,b)
:Example: Multiply two ROTATION signals
:'''Evaluate_Expression'''
:/EXPRESSION=ROTATION_MULTIPLY(ROTATION_INVERSE(ROTATION::ORIGINAL::PELVIS_SHIFTED_4x4),CURRENT_SIGNAL)
:/SIGNAL_TYPES=ROTATION
:! /SIGNAL_FOLDER=ORIGINAL
:! /SIGNAL_NAMES=
:/RESULT_TYPES=ROTATION
:! /RESULT_FOLDERS=PROCESSED
:/RESULT_NAME='''_MULT'''
:/APPLY_AS_SUFFIX_TO_SIGNAL_NAME=TRUE
:''';'''
===rotation Inverse===
'''Rotation_Inverse'''(a)
:Example: Inverse of a 4x4 ROTATION signal or a 3x3 LINK_MODEL_BASED ROTATION
:A good description of the inverse of a ROTATION signals can be found [[http://www.info.hiroshima-cu.ac.jp/~miyazaki/knowledge/teche0053.html here]]
:'''Evaluate_Expression'''
:/EXPRESSION=ROTATION_INVERSE(ROTATION::ORIGINAL::PELVIS_SHIFTED_4x4)
:/SIGNAL_TYPES=ROTATION
:! /SIGNAL_FOLDER=ORIGINAL
:! /SIGNAL_NAMES=
:/RESULT_TYPES=ROTATION
:! /RESULT_FOLDERS=PROCESSED
:/RESULT_NAME='''_INV'''
:/APPLY_AS_SUFFIX_TO_SIGNAL_NAME=TRUE
:''';'''
===Rotation Transpose===
'''Rotation_Transpose'''(a)
:Example: Transpose of a 3x3 LINK_MODEL_BASED ROTATION signal
:'''Evaluate_Expression'''
:/EXPRESSION=ROTATION_TRANSPOSE(ROTATION::ORIGINAL::PELVIS_SHIFTED_4x4)
:/SIGNAL_TYPES=ROTATION
:! /SIGNAL_FOLDER=ORIGINAL
:! /SIGNAL_NAMES=
:/RESULT_TYPES=ROTATION
:! /RESULT_FOLDERS=PROCESSED
:/RESULT_NAME='''_T'''
:/APPLY_AS_SUFFIX_TO_SIGNAL_NAME=TRUE
:''';'''

Revision as of 12:43, 1 June 2023

Language:  English  • français • italiano • português • español 

Arrays

Vector

Vector(a,b, etc)

creates a vector of the number of components specified

! Create a metric signal with 2 components and one frame
[Metric_Explicit]
! /RESULT_METRIC_FOLDER=PROCESSED
/RESULT_METRIC_NAME=VEC2
/METRIC_VALUE=2+3
;
! Create a vector containing a constant, a two dimensional metric and a 3 dimensional model based signal.
Evaluate_Expression
/EXPRESSION=vector (1, METRIC::PROCESSED::VEC2, LINK_MODEL_BASED::ORIGINAL::RKNEE_ANGLE)
! /SIGNAL_TYPES=
! /SIGNAL_FOLDER=ORIGINAL
! /SIGNAL_NAMES=
! /RESULT_TYPES=DERIVED
! /RESULT_FOLDERS=PROCESSED
/RESULT_NAME=TEST
! /APPLY_AS_SUFFIX_TO_SIGNAL_NAME=FALSE
;
The resulting signal will have the first three columns (one for the constant, one for the vector of 2 components) buffered to the number of frames of RKNEE_ANGLE by replicating the first frame.


list(a,b,etc) -- creates a list (column vector) or the number of rows specified:
unit_vector (a, b, etc) -- creates a unit vector of the number of components specified:


Rotation Matrices

=Rotation Multiply

Rotation_Multiply(a,b)

Example: Multiply two ROTATION signals
Evaluate_Expression
/EXPRESSION=ROTATION_MULTIPLY(ROTATION_INVERSE(ROTATION::ORIGINAL::PELVIS_SHIFTED_4x4),CURRENT_SIGNAL)
/SIGNAL_TYPES=ROTATION
! /SIGNAL_FOLDER=ORIGINAL
! /SIGNAL_NAMES=
/RESULT_TYPES=ROTATION
! /RESULT_FOLDERS=PROCESSED
/RESULT_NAME=_MULT
/APPLY_AS_SUFFIX_TO_SIGNAL_NAME=TRUE
;

rotation Inverse

Rotation_Inverse(a)

Example: Inverse of a 4x4 ROTATION signal or a 3x3 LINK_MODEL_BASED ROTATION
A good description of the inverse of a ROTATION signals can be found [here]
Evaluate_Expression
/EXPRESSION=ROTATION_INVERSE(ROTATION::ORIGINAL::PELVIS_SHIFTED_4x4)
/SIGNAL_TYPES=ROTATION
! /SIGNAL_FOLDER=ORIGINAL
! /SIGNAL_NAMES=
/RESULT_TYPES=ROTATION
! /RESULT_FOLDERS=PROCESSED
/RESULT_NAME=_INV
/APPLY_AS_SUFFIX_TO_SIGNAL_NAME=TRUE
;


Rotation Transpose

Rotation_Transpose(a)

Example: Transpose of a 3x3 LINK_MODEL_BASED ROTATION signal
Evaluate_Expression
/EXPRESSION=ROTATION_TRANSPOSE(ROTATION::ORIGINAL::PELVIS_SHIFTED_4x4)
/SIGNAL_TYPES=ROTATION
! /SIGNAL_FOLDER=ORIGINAL
! /SIGNAL_NAMES=
/RESULT_TYPES=ROTATION
! /RESULT_FOLDERS=PROCESSED
/RESULT_NAME=_T
/APPLY_AS_SUFFIX_TO_SIGNAL_NAME=TRUE
;
Retrieved from ""