User Tools

Site Tools


visual3d:documentation:pipeline:expressions:brackets

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
visual3d:documentation:pipeline:expressions:brackets [2024/07/16 19:28] – created sgrangervisual3d:documentation:pipeline:expressions:brackets [2024/11/15 20:15] (current) – [Brackets] wikisysop
Line 1: Line 1:
 ====== Brackets ====== ====== Brackets ======
  
-Brackets 
  
-==== Contents ==== 
  
 +===== Parentheses =====
  
 +Parentheses **(** and **)** are used to contain the parameters in a function
  
-  * [[#Parentheses|1 Parentheses]] +For Example\\ 
-  * [[#Square_Brackets|2 Square_Brackets]] +Vector(0,0,1)
-    * [[#Square_Brackets_2|2.Square Brackets]] +
-    * [[#Using_Square_Brackets_and_Boolean_Operators|2.2 Using Square Brackets and Boolean Operators]]+
  
- 
-===== Parentheses ===== 
- 
-Parenthesis **(** and **)** are used to contain the parameters in a function 
-For Example 
-[[index.php?title=Vector(0,0,1)&action=edit&redlink=1|Vector(0,0,1)]] 
 ===== Square_Brackets ===== ===== Square_Brackets =====
- 
-== Square Brackets == 
  
 Square Brackets **[** and **]** specify frame numbers and components Square Brackets **[** and **]** specify frame numbers and components
  
 Square Brackets **[** and **]** are used at the end of a function call or parenthesis ( ) to specify the frames numbers and components Square Brackets **[** and **]** are used at the end of a function call or parenthesis ( ) to specify the frames numbers and components
 +
 Example, add two signals and retrieve the component 1 from frame 5 Example, add two signals and retrieve the component 1 from frame 5
 +<code>
 Evaluate_Expression Evaluate_Expression
 /Expression= (TARGET::ORIGINAL::RFT1 + TARGET::ORIGINAL::RFT2)[5,1] /Expression= (TARGET::ORIGINAL::RFT1 + TARGET::ORIGINAL::RFT2)[5,1]
Line 31: Line 23:
 /Result_Type=DERIVED /Result_Type=DERIVED
 /Result_Folder=PROCESSED /Result_Folder=PROCESSED
-**;** +
-for example, add two signals and retrieve the component 1 for all frames+</code> 
 + 
 +Example, add two signals and retrieve the component 1 for all frames 
 +<code>
 Evaluate_Expression Evaluate_Expression
 /Expression= (TARGET::ORIGINAL::RFT1 + TARGET::ORIGINAL::RFT2)[-1,1] /Expression= (TARGET::ORIGINAL::RFT1 + TARGET::ORIGINAL::RFT2)[-1,1]
Line 38: Line 33:
 /Result_Type=DERIVED /Result_Type=DERIVED
 /Result_Folder=PROCESSED /Result_Folder=PROCESSED
-**;** +; 
-**NOTE** a frame of -1 means all frames+</code> 
 + 
 +**NOTE** a frame of -1 means all frames\\
 Extracting one "component" of data from signal Extracting one "component" of data from signal
  
 The following command will result in the DERIVED signal TEST containing the X component values of the TARGET RFT1. The following command will result in the DERIVED signal TEST containing the X component values of the TARGET RFT1.
-**Evaluate_Expression**+<code> 
 +Evaluate_Expression
 /EXPRESSION=TARGET::ORIGINAL::RFT1::X /EXPRESSION=TARGET::ORIGINAL::RFT1::X
 /RESULT_NAME=TEST /RESULT_NAME=TEST
 /RESULT_TYPE=DERIVED /RESULT_TYPE=DERIVED
 ! /RESULT_FOLDER=PROCESSED ! /RESULT_FOLDER=PROCESSED
-**;**+; 
 +</code> 
 == Using Square Brackets and Boolean Operators == == Using Square Brackets and Boolean Operators ==
  
Line 54: Line 54:
 whenever the z-component of a marker is less than a threshold (e.g. 0.08 in this example) whenever the z-component of a marker is less than a threshold (e.g. 0.08 in this example)
 otherwise set the resulting frame to NO_DATA otherwise set the resulting frame to NO_DATA
-**Evaluate_Expression**+ 
 +<code> 
 +Evaluate_Expression
 /EXPRESSION=(((CURRENT_SIGNAL[-1,3])<0.08)/((CURRENT_SIGNAL[-1,3])<0.08))*VECTOR(1,1,0)*CURRENT_SIGNAL /EXPRESSION=(((CURRENT_SIGNAL[-1,3])<0.08)/((CURRENT_SIGNAL[-1,3])<0.08))*VECTOR(1,1,0)*CURRENT_SIGNAL
 /SIGNAL_TYPES=TARGET /SIGNAL_TYPES=TARGET
Line 63: Line 65:
 ! /RESULT_NAME= ! /RESULT_NAME=
 /APPLY_AS_SUFFIX_TO_SIGNAL_NAME=TRUE /APPLY_AS_SUFFIX_TO_SIGNAL_NAME=TRUE
-**;**+; 
 +</code>
  
  
visual3d/documentation/pipeline/expressions/brackets.1721158088.txt.gz · Last modified: 2024/07/16 19:28 by sgranger