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/03 17:29] – removed sgranger | visual3d:documentation:pipeline:metric_commands:metric_event_count [2025/09/23 19:38] (current) – [Example 2: Multiple Files] wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Metric Event Count ====== | ||
+ | ====Overview==== | ||
+ | |||
+ | This command creates a [[visual3d: | ||
+ | |||
+ | ====Pipeline Command==== | ||
+ | |||
+ | The command can be found in the workshop as so: | ||
+ | |||
+ | < | ||
+ | Metric_Event_Count | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | ====Command Parameters==== | ||
+ | |||
+ | The following table shows the command parameters seen above and their descriptions: | ||
+ | |||
+ | |**RESULT_METRIC_FOLDER**|**The name of the result signal folder**| | ||
+ | |**RESULT_METRIC_NAME**|**The name of the result signal**| | ||
+ | |**EVENT_TO_COUNT**|**Specify the name of the event that is being counted**| | ||
+ | |**TIME_INTERVAL**|**The time interval over which events will be counted**| | ||
+ | |**EVENT_SEQUENCE**|**Defining a specific sequence of events to be counted**| | ||
+ | |**EXCLUDE_EVENTS**|**Defining events within the sequence to be excluded**| | ||
+ | |**GENERATE_COUNT_TOTAL_IN_GLOBAL**|**(True/ | ||
+ | |||
+ | If the user specifies an **Event_Sequence/ | ||
+ | |||
+ | If **Time_Interval**, | ||
+ | |||
+ | As of Visual3D v5.00.29, the user can select both an **Event_Sequence/ | ||
+ | |||
+ | ====Dialog==== | ||
+ | |||
+ | The command can be edited in a text editor or in a dialog form. To edit in the dialog pop up form either click on the **Edit** button in the pipeline workshop or double-click on the pipeline command. The dialog is shown below. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | |||
+ | The dialog box allows you to assign values to the command parameters outlined above. | ||
+ | |||
+ | ===== Example 1: Basic Metric Event Count ===== | ||
+ | |||
+ | < | ||
+ | Select_Active_File | ||
+ | /FILE_NAME= ALL_FILES | ||
+ | ! /QUERY= | ||
+ | ; | ||
+ | |||
+ | Metric_Event_Count | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | This command will count all events in the file and a metric value LON_COUNT will be created in the METRIC:: | ||
+ | |||
+ | ===== Example 2: Multiple Files ===== | ||
+ | |||
+ | This example shows three ways the Metric_Event_Count command can be used. All three consider a set of 5 files containing the following event LHS. | ||
+ | |||
+ | ^ 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 | | ||
+ | |||
+ | ==== Example 2A: Count events across entire file ==== | ||
+ | |||
+ | This example counts events on a per-file basis. | ||
+ | |||
+ | < | ||
+ | Metric_Event_Count | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | The result of this command will be: | ||
+ | |||
+ | < | ||
+ | mvc005.c3d | ||
+ | Event_Count= 3 | ||
+ | mvc002.c3d | ||
+ | Event_Count= 3 | ||
+ | mvc003.c3d | ||
+ | Event_Count= 3 | ||
+ | mvc004.c3d | ||
+ | Event_Count= 3 | ||
+ | Global_Event_Count= 12 | ||
+ | </ | ||
+ | |||
+ | ==== Example 2B: Count events across entire file in time intervals ==== | ||
+ | |||
+ | This example counts events according to time intervals over entire files and also calculates global counts. | ||
+ | |||
+ | < | ||
+ | Metric_Event_Count | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | The result of this command will be: | ||
+ | |||
+ | < | ||
+ | mvc005.c3d | ||
+ | Interval= 0.000000 to 1.000000 Event_Count= 1 | ||
+ | Interval= 1.000000 to 2.000000 Event_Count= 0 | ||
+ | Interval= 2.000000 to 3.000000 Event_Count= 1 | ||
+ | Interval= 3.000000 to 4.000000 Event_Count= 1 | ||
+ | Interval= 4.000000 to 4.200000 Event_Count= 0 | ||
+ | mvc002.c3d | ||
+ | Interval= 0.000000 to 1.000000 Event_Count= 0 | ||
+ | Interval= 1.000000 to 2.000000 Event_Count= 1 | ||
+ | Interval= 2.000000 to 3.000000 Event_Count= 1 | ||
+ | Interval= 3.000000 to 4.000000 Event_Count= 1 | ||
+ | Interval= 4.000000 to 4.580000 Event_Count= 0 | ||
+ | mvc003.c3d | ||
+ | Interval= 0.000000 to 1.000000 Event_Count= 1 | ||
+ | Interval= 1.000000 to 2.000000 Event_Count= 0 | ||
+ | Interval= 2.000000 to 3.000000 Event_Count= 1 | ||
+ | Interval= 3.000000 to 4.000000 Event_Count= 1 | ||
+ | Interval= 4.000000 to 4.600000 Event_Count= 0 | ||
+ | mvc004.c3d | ||
+ | Interval= 0.000000 to 1.000000 Event_Count= 1 | ||
+ | Interval= 1.000000 to 2.000000 Event_Count= 0 | ||
+ | Interval= 2.000000 to 3.000000 Event_Count= 1 | ||
+ | Interval= 3.000000 to 4.000000 Event_Count= 1 | ||
+ | Interval= 4.000000 to 4.380000 Event_Count= 0 | ||
+ | Global_Event_Counts | ||
+ | Global_Event_Count= 3 | ||
+ | Global_Event_Count= 1 | ||
+ | Global_Event_Count= 4 | ||
+ | Global_Event_Count= 4 | ||
+ | Global_Event_Count= 0 | ||
+ | </ | ||
+ | |||
+ | ==== Example 2C: Count events in a set number of intervals across entire file ==== | ||
+ | |||
+ | This example counts events over 5 intervals from the event_sequence START+END, where START=1.0 and END=4.0 for all files. | ||
+ | |||
+ | < | ||
+ | Metric_Event_Count | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | The result for this command will be: | ||
+ | |||
+ | < | ||
+ | mvc005.c3d | ||
+ | Interval= 1.000000 to 1.600000 Event_Count= 0 | ||
+ | Interval= 1.600000 to 2.200000 Event_Count= 1 | ||
+ | Interval= 2.200000 to 2.800000 Event_Count= 0 | ||
+ | Interval= 2.800000 to 3.400000 Event_Count= 1 | ||
+ | Interval= 3.400000 to 4.000000 Event_Count= 0 | ||
+ | mvc002.c3d | ||
+ | Interval= 1.000000 to 1.600000 Event_Count= 1 | ||
+ | Interval= 1.600000 to 2.200000 Event_Count= 0 | ||
+ | Interval= 2.200000 to 2.800000 Event_Count= 1 | ||
+ | Interval= 2.800000 to 3.400000 Event_Count= 0 | ||
+ | Interval= 3.400000 to 4.000000 Event_Count= 1 | ||
+ | mvc003.c3d | ||
+ | Interval= 1.000000 to 1.600000 Event_Count= 0 | ||
+ | Interval= 1.600000 to 2.200000 Event_Count= 0 | ||
+ | Interval= 2.200000 to 2.800000 Event_Count= 1 | ||
+ | Interval= 2.800000 to 3.400000 Event_Count= 0 | ||
+ | Interval= 3.400000 to 4.000000 Event_Count= 1 | ||
+ | mvc004.c3d | ||
+ | Interval= 1.000000 to 1.600000 Event_Count= 0 | ||
+ | Interval= 1.600000 to 2.200000 Event_Count= 0 | ||
+ | Interval= 2.200000 to 2.800000 Event_Count= 1 | ||
+ | Interval= 2.800000 to 3.400000 Event_Count= 0 | ||
+ | Interval= 3.400000 to 4.000000 Event_Count= 1 | ||
+ | Global_Event_Counts | ||
+ | Global_Event_Count= 1 | ||
+ | Global_Event_Count= 1 | ||
+ | Global_Event_Count= 3 | ||
+ | Global_Event_Count= 1 | ||
+ | Global_Event_Count= 3 | ||
+ | </ | ||
+ | |||
+ | ====Example 3: Defining and Counting Gait Events==== | ||
+ | Here we will use **Automatic Gait Events** to define a series of events during a gait cycle trial, and then count those events using the **Metric Event Count** command. | ||
+ | |||
+ | Once you have loaded in a gait trial to your Visual3D, use **Automatic Gait Events** to identify the core gait events like so: | ||
+ | |||
+ | < | ||
+ | Automatic_Gait_Events | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | Now we can use **Metric Event Count** to count the number of left heel strikes during each trial. The command should look like so: | ||
+ | |||
+ | < | ||
+ | Metric_Event_Count | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | A new folder containing the counts named **PROCESSED_events** can now be found within the **Metric** folder. |
visual3d/documentation/pipeline/metric_commands/metric_event_count.1720027740.txt.gz · Last modified: 2024/07/03 17:29 by sgranger