visual3d:documentation:pipeline:metric_commands:metric_event_count
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:pipeline:metric_commands:metric_event_count [2024/07/16 19:29] – created sgranger | visual3d:documentation:pipeline:metric_commands:metric_event_count [2025/05/12 20:43] (current) – Cleaned up page with section headers. wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | Creates | + | This command creates |
- | **Metric_Event_Count** | + | < |
+ | Metric_Event_Count | ||
/ | / | ||
/ | / | ||
Line 11: | Line 12: | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | ==== Prior to Version 5.00.29 ==== | + | </ |
- | the user could select " | + | {{: |
- | if **Event_Sequence/ | + | |
- | The count of the specified Event includes all sequences in the file | + | |
- | if **Time_Interval** (specified as a number) | + | |
- | A count of events within each time interval (starting from Time=0) is specified as a separate frame. | + | |
- | For example, if there were three ranges defined by the time sequence, there would be 3 frames of data in the resulting metric. | + | |
- | ==== Starting in Version 5.00.29 ==== | + | |
- | the user can select both an **Event_Sequence/ | + | ==== Parameters ==== |
- | If the **Time_Interval** is empty the command behaves as before. | + | |
- | If the **Time_Interval** is populated (a number or expression) the start time is the first event in the event_sequence. | + | |
- | \\ | + | |
- | As of Visual3Dv5.00.29 this command must be edited manually. | + | |
- | ==== User Dialog Starting | + | If the user specifies an **Event_Sequence/ |
- | |In Visual3D v5.01.14 the user dialog was introduced. The command works the same as described in v5.00.29, however | + | If **Time_Interval**, |
- | ==== Example_1 ==== | + | As of Visual3D v5.00.29, the user can select both an **Event_Sequence/ |
- | **Select_Active_File** | + | ===== Example 1: Basic Metric Event Count ===== |
- | **/ | + | |
- | **! /QUERY=** | + | |
- | **;** | + | |
- | **Metric_Event_Count** | + | |
- | **/ | + | |
- | **/ | + | |
- | **/ | + | |
- | **/ | + | |
- | **/ | + | |
- | **/ | + | |
- | **/ | + | |
- | **;** | + | |
- | \\ | + | |
+ | < | ||
+ | Select_Active_File | ||
+ | /FILE_NAME= ALL_FILES | ||
+ | ! /QUERY= | ||
+ | ; | ||
- | === Result | + | Metric_Event_Count |
+ | / | ||
+ | / | ||
+ | /EVENT_NAME=LON | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
- | LON_COUNT | + | This command |
- | "Since GENERATE_COUNT_TOTAL_IN_GLOBAL is set to TRUE, the total number of LON events in the workspace will be created. | + | ===== Example 2: Multiple Files ===== |
- | To see this value set the Active File to GLOBAL and a metric value LON_COUNT will be created in the METRIC:: | + | This example shows three ways the Metric_Event_Count command can be used. All three consider a set of 5 files containing |
- | ==== Example_2 ==== | + | |
- | **This example shows 3 ways the Metric_Event_Count command can be used.** | + | ^ File ^ LHS Event Times ^ |
+ | | mvc004.c3d | 0.960000 | | ||
+ | | | 2.240000 | | ||
+ | | | 3.500000 | | ||
+ | | mvc003.c3d | 0.980000 | | ||
+ | | | 2.260000 | | ||
+ | | | 3.560000 | | ||
+ | | mvc002.c3d | 1.000000 | | ||
+ | | | 2.260000 | | ||
+ | | | 3.600000 | | ||
+ | | mvc005.c3d | 0.920000 | | ||
+ | | | 2.140000 | | ||
+ | | | 3.360000 | | ||
- | **Consider a set of 5 files containing the following event LHS.** | + | ==== Example 2A: Count events across entire file ==== |
- | Event LHS | + | This example counts |
- | mvc004.c3d | + | |
- | 0.960000 | + | |
- | 2.240000 | + | |
- | 3.500000 | + | |
- | mvc003.c3d | + | |
- | 0.980000 | + | |
- | 2.260000 | + | |
- | 3.560000 | + | |
- | mvc002.c3d | + | |
- | 1.000000 | + | |
- | 2.260000 | + | |
- | 3.600000 | + | |
- | mvc005.c3d | + | |
- | 0.920000 | + | |
- | 2.140000 | + | |
- | 3.360000 | + | |
- | === Count events | + | |
- | **Count across the entire file** | + | < |
- | **Metric_Event_Count** | + | Metric_Event_Count |
/ | / | ||
/ | / | ||
Line 91: | Line 77: | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | **Result** | + | </ |
+ | |||
+ | The result of this command will be: | ||
+ | |||
+ | < | ||
mvc005.c3d | mvc005.c3d | ||
Event_Count= 3 | Event_Count= 3 | ||
Line 102: | Line 92: | ||
Event_Count= 3 | Event_Count= 3 | ||
Global_Event_Count= 12 | Global_Event_Count= 12 | ||
- | === Count events across entire file in time intervals === | + | </ |
- | **Count across | + | ==== Example 2B: Count events |
- | **Metric_Event_Count** | + | |
+ | This example counts events according to time intervals over entire files and also calculates global counts. | ||
+ | |||
+ | < | ||
+ | Metric_Event_Count | ||
/ | / | ||
/ | / | ||
Line 113: | Line 107: | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | **Result** | + | </ |
+ | |||
+ | The result of this command will be: | ||
+ | |||
+ | < | ||
mvc005.c3d | mvc005.c3d | ||
Interval= 0.000000 to 1.000000 Event_Count= 1 | Interval= 0.000000 to 1.000000 Event_Count= 1 | ||
Line 145: | Line 143: | ||
Global_Event_Count= 4 | Global_Event_Count= 4 | ||
Global_Event_Count= 0 | Global_Event_Count= 0 | ||
- | === Count events in a set number of intervals across entire file === | + | </ |
- | **Count over 5 intervals from the event_sequence START+END** | + | ==== Example 2C: Count events in a set number of intervals across entire file ==== |
- | **** | + | |
- | **Where | + | This example counts events |
- | **Metric_Event_Count** | + | |
+ | < | ||
+ | Metric_Event_Count | ||
/ | / | ||
/ | / | ||
Line 158: | Line 158: | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | **Result** | + | </ |
+ | |||
+ | The result for this command will be: | ||
+ | |||
+ | < | ||
mvc005.c3d | mvc005.c3d | ||
Interval= 1.000000 to 1.600000 Event_Count= 0 | Interval= 1.000000 to 1.600000 Event_Count= 0 | ||
Line 190: | Line 194: | ||
Global_Event_Count= 1 | Global_Event_Count= 1 | ||
Global_Event_Count= 3 | Global_Event_Count= 3 | ||
- | + | </ |
visual3d/documentation/pipeline/metric_commands/metric_event_count.1721158192.txt.gz · Last modified: 2024/07/16 19:29 by sgranger