User Tools

Site Tools


visual3d:documentation:pipeline:signal_commands:mimicking_temporal_distance_command

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:signal_commands:mimicking_temporal_distance_command [2024/06/19 12:53] sgrangervisual3d:documentation:pipeline:signal_commands:mimicking_temporal_distance_command [2024/11/15 19:03] (current) wikisysop
Line 1: Line 1:
-this is an example pipeline that mimics the temporal distance metrics command. the script allows the user to customize the metrics computed. this is only an example because the computed values are not identical with the metrics computed by visual3d temporal distance command.+====== Mimicking Temporal Distance Command ====== 
 + 
 +This is an example pipeline that mimics the temporal distance metrics command. The script allows the user to customize the metrics computed. This is only an example because the computed values are not identical with the metrics computed by Visual3D temporal distance command.
  
 <code> <code>
-select all_files as active +Select ALL_FILES as active 
-select_active_file  +Select_Active_File  
-/file_name=all_files +/FILE_NAME=ALL_FILES 
 ; ;
  
-calculate automatic gait events +Calculate automatic gait events 
-automatic_gait_events  +Automatic_Gait_Events  
-! /select_x=false  +! /SELECT_X=FALSE  
-! /select_y=false  +! /SELECT_Y=FALSE  
-/select_z=true  +/SELECT_Z=TRUE  
-/threshold=0.000000  +/THRESHOLD=0.000000  
-/radius=8  +/RADIUS=8  
-! /use_tpr=true +! /USE_TPR=TRUE 
  
  
-calculate metric stride vector proximal position of lft from lhs to lhs +Calculate Metric Stride Vector Proximal position of LFT from LHS to LHS 
-generate mean and std dev +Generate Mean and STD DEV 
-metric_vector_between_events  +Metric_Vector_Between_Events  
-/start_signal_type=kinetic_kinematic  +/START_SIGNAL_TYPE=KINETIC_KINEMATIC  
-/start_signal_name=proxendpos  +/START_SIGNAL_NAME=ProxEndPos  
-/start_signal_folder=lft  +/START_SIGNAL_FOLDER=LFT  
-/end_signal_type=kinetic_kinematic  +/END_SIGNAL_TYPE=KINETIC_KINEMATIC  
-/end_signal_name=proxendpos  +/END_SIGNAL_NAME=ProxEndPos  
-/end_signal_folder=lft  +/END_SIGNAL_FOLDER=LFT  
-/event_sequence=lhs+lhs  +/EVENT_SEQUENCE=LHS+LHS  
-/exclude_events=  +/EXCLUDE_EVENTS=  
-/metric_name=stridevectors  +/METRIC_NAME=StrideVectors  
-! /generate_mean_and_stddev=true  +! /GENERATE_MEAN_AND_STDDEV=TRUE  
-! /append_to_existing_values=false  +! /APPEND_TO_EXISTING_VALUES=FALSE  
-! /generate_vector_length_metric=false +! /GENERATE_VECTOR_LENGTH_METRIC=FALSE 
  
  
-calculate metric stride vector proximal position of rft from rhs to rhs +Calculate Metric Stride Vector Proximal position of RFT from RHS to RHS 
-generate mean and std dev and append to the previous set of stridevectors values +Generate Mean and STD DEV and append to the previous set of StrideVectors values 
-metric_vector_between_events  +Metric_Vector_Between_Events  
-/start_signal_type=kinetic_kinematic  +/START_SIGNAL_TYPE=KINETIC_KINEMATIC  
-/start_signal_name=proxendpos  +/START_SIGNAL_NAME=ProxEndPos  
-/start_signal_folder=rft  +/START_SIGNAL_FOLDER=RFT  
-/end_signal_type=kinetic_kinematic  +/END_SIGNAL_TYPE=KINETIC_KINEMATIC  
-/end_signal_name=proxendpos  +/END_SIGNAL_NAME=ProxEndPos  
-/end_signal_folder=rft  +/END_SIGNAL_FOLDER=RFT  
-/event_sequence=rhs+rhs  +/EVENT_SEQUENCE=RHS+RHS  
-/exclude_events=  +/EXCLUDE_EVENTS=  
-/metric_name=stridevectors  +/METRIC_NAME=StrideVectors  
-! /generate_mean_and_stddev=true  +! /GENERATE_MEAN_AND_STDDEV=TRUE  
-/append_to_existing_values=true  +/APPEND_TO_EXISTING_VALUES=TRUE  
-! /generate_vector_length_metric=false +! /GENERATE_VECTOR_LENGTH_METRIC=FALSE 
 ; ;
  
-calculate metric leftstep vector proximal position of rft from rhs to proximal  +Calculate Metric LeftStep Vector Proximal position of RFT from RHS to Proximal  
-! position of lft at lhs +! position of LFT at LHS 
-metric_vector_between_events  +Metric_Vector_Between_Events  
-/start_signal_type=kinetic_kinematic  +/START_SIGNAL_TYPE=KINETIC_KINEMATIC  
-/start_signal_name=proxendpos  +/START_SIGNAL_NAME=ProxEndPos  
-/start_signal_folder=rft  +/START_SIGNAL_FOLDER=RFT  
-/end_signal_type=kinetic_kinematic  +/END_SIGNAL_TYPE=KINETIC_KINEMATIC  
-/end_signal_name=proxendpos  +/END_SIGNAL_NAME=ProxEndPos  
-/end_signal_folder=lft  +/END_SIGNAL_FOLDER=LFT  
-/event_sequence=rhs+lhs  +/EVENT_SEQUENCE=RHS+LHS  
-/exclude_events=  +/EXCLUDE_EVENTS=  
-/metric_name=leftstep  +/METRIC_NAME=LeftStep  
-/generate_mean_and_stddev=false  +/GENERATE_MEAN_AND_STDDEV=FALSE  
-! /append_to_existing_values=false  +! /APPEND_TO_EXISTING_VALUES=FALSE  
-! /generate_vector_length_metric=false +! /GENERATE_VECTOR_LENGTH_METRIC=FALSE 
  
  
-calculate metric rightstep vector proximal position of lft from lhs to proximal +Calculate Metric RightStep Vector Proximal position of LFT from LHS to Proximal 
-! position of rft at rhs +! position of RFT at RHS 
-metric_vector_between_events  +Metric_Vector_Between_Events  
-/start_signal_type=kinetic_kinematic  +/START_SIGNAL_TYPE=KINETIC_KINEMATIC  
-/start_signal_name=proxendpos  +/START_SIGNAL_NAME=ProxEndPos  
-/start_signal_folder=lft  +/START_SIGNAL_FOLDER=LFT  
-/end_signal_type=kinetic_kinematic  +/END_SIGNAL_TYPE=KINETIC_KINEMATIC  
-/end_signal_name=proxendpos  +/END_SIGNAL_NAME=ProxEndPos  
-/end_signal_folder=rft  +/END_SIGNAL_FOLDER=RFT  
-/event_sequence=lhs+rhs  +/EVENT_SEQUENCE=LHS+RHS  
-/exclude_events=  +/EXCLUDE_EVENTS=  
-/metric_name=rightstep  +/METRIC_NAME=RightStep  
-/generate_mean_and_stddev=false  +/GENERATE_MEAN_AND_STDDEV=FALSE  
-! /append_to_existing_values=false  +! /APPEND_TO_EXISTING_VALUES=FALSE  
-! /generate_vector_length_metric=false +! /GENERATE_VECTOR_LENGTH_METRIC=FALSE 
 ; ;
  
-calculate leftsteplength by taking a dot product of leftstep and stridevectors_mean +Calculate LeftStepLength by taking a dot product of LeftStep and StrideVectors_MEAN 
-generate mean and std dev +Generate Mean and STD DEV 
-metric_dot_product  +Metric_Dot_Product  
-! /metric1_file=  +! /METRIC1_FILE=  
-/metric1_name=leftstep  +/METRIC1_NAME=LeftStep  
-! /metric1_folder=processed  +! /METRIC1_FOLDER=PROCESSED  
-! /metric2_file=global  +! /METRIC2_FILE=GLOBAL  
-/metric2_name=stridevectors_mean  +/METRIC2_NAME=StrideVectors_MEAN  
-! /metric2_folder=processed  +! /METRIC2_FOLDER=PROCESSED  
-/result_metric_name=leftsteplength  +/RESULT_METRIC_NAME=LeftStepLength  
-! /result_metric_folder=processed +! /RESULT_METRIC_FOLDER=PROCESSED 
-! /divide_by_metric2_length=true  +! /DIVIDE_BY_METRIC2_LENGTH=TRUE  
-/generate_mean_and_stddev=true  +/GENERATE_MEAN_AND_STDDEV=TRUE  
-! /append_to_existing_values=false +! /APPEND_TO_EXISTING_VALUES=FALSE 
 ; ;
  
-calculate rightsteplength by taking a dot product of rightstep and stridevectors_mean +Calculate RightStepLength by taking a dot product of RightStep and StrideVectors_MEAN 
-generate mean and std dev +Generate Mean and STD DEV 
-metric_dot_product  +Metric_Dot_Product  
-! /metric1_file=  +! /METRIC1_FILE=  
-/metric1_name=rightstep  +/METRIC1_NAME=RightStep  
-! /metric1_folder=processed  +! /METRIC1_FOLDER=PROCESSED  
-! /metric2_file=global  +! /METRIC2_FILE=GLOBAL  
-/metric2_name=stridevectors_mean  +/METRIC2_NAME=StrideVectors_MEAN  
-! /metric2_folder=processed  +! /METRIC2_FOLDER=PROCESSED  
-/result_metric_name=rightsteplength  +/RESULT_METRIC_NAME=RightStepLength  
-! /result_metric_folder=processed  +! /RESULT_METRIC_FOLDER=PROCESSED  
-! /divide_by_metric2_length=true  +! /DIVIDE_BY_METRIC2_LENGTH=TRUE  
-/generate_mean_and_stddev=true  +/GENERATE_MEAN_AND_STDDEV=TRUE  
-! /append_to_existing_values=false +! /APPEND_TO_EXISTING_VALUES=FALSE 
  
  
-calculate rightstepwidth by taking cross product of rightstep vector and stridevectors_mean +Calculate RightStepWidth by taking cross product of RightStep vector and StrideVectors_MEAN 
-generate mean and std dev +Generate Mean and STD DEV 
-metric_cross_product  +Metric_Cross_Product  
-! /metric1_file=  +! /METRIC1_FILE=  
-/metric1_name=rightstep  +/METRIC1_NAME=RightStep  
-! /metric1_folder=processed  +! /METRIC1_FOLDER=PROCESSED  
-/metric2_file=global  +/METRIC2_FILE=GLOBAL  
-/metric2_name=stridevectors_mean  +/METRIC2_NAME=StrideVectors_MEAN  
-! /metric2_folder=processed  +! /METRIC2_FOLDER=PROCESSED  
-! /divide_by_metric2_length=true  +! /DIVIDE_BY_METRIC2_LENGTH=TRUE  
-/result_metric_name=rightstepwidth  +/RESULT_METRIC_NAME=RightStepWidth  
-! /result_metric_folder=processed  +! /RESULT_METRIC_FOLDER=PROCESSED  
-! /generate_mean_and_stddev=true  +! /GENERATE_MEAN_AND_STDDEV=TRUE  
-! /append_to_existing_values=false  +! /APPEND_TO_EXISTING_VALUES=FALSE  
-/generate_vector_length_metric=true +/GENERATE_VECTOR_LENGTH_METRIC=TRUE 
  
  
-calculate leftstepwidth by taking cross product of leftstep vector and stridevectors_mean +Calculate LeftStepWidth by taking cross product of LeftStep vector and StrideVectors_MEAN 
-generate mean and std dev +Generate Mean and STD DEV 
-metric_cross_product  +Metric_Cross_Product  
-! /metric1_file=  +! /METRIC1_FILE=  
-/metric1_name=leftstep  +/METRIC1_NAME=LeftStep  
-! /metric1_folder=processed  +! /METRIC1_FOLDER=PROCESSED  
-/metric2_file=global  +/METRIC2_FILE=GLOBAL  
-/metric2_name=stridevectors_mean  +/METRIC2_NAME=StrideVectors_MEAN  
-! /metric2_folder=processed  +! /METRIC2_FOLDER=PROCESSED  
-! /divide_by_metric2_length=true  +! /DIVIDE_BY_METRIC2_LENGTH=TRUE  
-/result_metric_name=leftstepwidth  +/RESULT_METRIC_NAME=LeftStepWidth  
-! /result_metric_folder=processed  +! /RESULT_METRIC_FOLDER=PROCESSED  
-! /generate_mean_and_stddev=true  +! /GENERATE_MEAN_AND_STDDEV=TRUE  
-! /append_to_existing_values=false  +! /APPEND_TO_EXISTING_VALUES=FALSE  
-/generate_vector_length_metric=true +/GENERATE_VECTOR_LENGTH_METRIC=TRUE 
 ; ;
  
-calculate stepwidth by taking cross product of leftstep vector and stridevectors_mean +Calculate StepWidth by taking cross product of LeftStep vector and StrideVectors_MEAN 
-generate mean and std dev +Generate Mean and STD DEV 
-metric_cross_product  +Metric_Cross_Product  
-! /metric1_file=  +! /METRIC1_FILE=  
-/metric1_name=leftstep  +/METRIC1_NAME=LeftStep  
-! /metric1_folder=processed  +! /METRIC1_FOLDER=PROCESSED  
-/metric2_file=global  +/METRIC2_FILE=GLOBAL  
-/metric2_name=stridevectors_mean  +/METRIC2_NAME=StrideVectors_MEAN  
-! /metric2_folder=processed  +! /METRIC2_FOLDER=PROCESSED  
-! /divide_by_metric2_length=true  +! /DIVIDE_BY_METRIC2_LENGTH=TRUE  
-/result_metric_name=stepwidth  +/RESULT_METRIC_NAME=StepWidth  
-! /result_metric_folder=processed  +! /RESULT_METRIC_FOLDER=PROCESSED  
-! /generate_mean_and_stddev=true  +! /GENERATE_MEAN_AND_STDDEV=TRUE  
-! /append_to_existing_values=false  +! /APPEND_TO_EXISTING_VALUES=FALSE  
-/generate_vector_length_metric=true +/GENERATE_VECTOR_LENGTH_METRIC=TRUE 
 ; ;
  
-calculate stepwidth by taking cross product of rightstep vector and stridevectors_mean +Calculate StepWidth by taking cross product of RightStep vector and StrideVectors_MEAN 
-generate mean and std dev append to previous stepwidth +Generate Mean and STD DEV Append to previous StepWidth 
-metric_cross_product  +Metric_Cross_Product  
-! /metric1_file=  +! /METRIC1_FILE=  
-/metric1_name=rightstep  +/METRIC1_NAME=RightStep  
-! /metric1_folder=processed  +! /METRIC1_FOLDER=PROCESSED  
-/metric2_file=global  +/METRIC2_FILE=GLOBAL  
-/metric2_name=stridevectors_mean  +/METRIC2_NAME=StrideVectors_MEAN  
-! /metric2_folder=processed  +! /METRIC2_FOLDER=PROCESSED  
-! /divide_by_metric2_length=true  +! /DIVIDE_BY_METRIC2_LENGTH=TRUE  
-/result_metric_name=stepwidth  +/RESULT_METRIC_NAME=StepWidth  
-! /result_metric_folder=processed  +! /RESULT_METRIC_FOLDER=PROCESSED  
-! /generate_mean_and_stddev=true  +! /GENERATE_MEAN_AND_STDDEV=TRUE  
-/append_to_existing_values=true  +/APPEND_TO_EXISTING_VALUES=TRUE  
-/generate_vector_length_metric=true +/GENERATE_VECTOR_LENGTH_METRIC=TRUE 
 ; ;
  
-calculate left_step_time from rhs to lhs +Calculate Left_Step_Time from RHS to LHS 
-generate mean and std dev +Generate Mean and STD DEV 
-time_between_events  +Time_Between_Events  
-/event_sequence=rhs+lhs  +/EVENT_SEQUENCE=RHS+LHS  
-/exclude_events=  +/EXCLUDE_EVENTS=  
-/metric_name=left_step_time  +/METRIC_NAME=Left_Step_Time  
-! /generate_mean_and_stddev=true  +! /GENERATE_MEAN_AND_STDDEV=TRUE  
-! /append_to_existing_values=false +! /APPEND_TO_EXISTING_VALUES=FALSE 
 ; ;
  
-calculate right_step_time from lhs to rhs +Calculate Right_Step_Time from LHS to RHS 
-generate mean and std dev +Generate Mean and STD DEV 
-time_between_events  +Time_Between_Events  
-/event_sequence=lhs+rhs  +/EVENT_SEQUENCE=LHS+RHS  
-/exclude_events=  +/EXCLUDE_EVENTS=  
-/metric_name=right_step_time  +/METRIC_NAME=Right_Step_Time  
-! /generate_mean_and_stddev=true  +! /GENERATE_MEAN_AND_STDDEV=TRUE  
-! /append_to_existing_values=false +! /APPEND_TO_EXISTING_VALUES=FALSE 
 ; ;
  
-calculate step_time from rhs to lhs +Calculate Step_Time from RHS to LHS 
-generate mean and std dev +Generate Mean and STD DEV 
-time_between_events  +Time_Between_Events  
-/event_sequence=rhs+lhs  +/EVENT_SEQUENCE=RHS+LHS  
-/exclude_events=  +/EXCLUDE_EVENTS=  
-/metric_name=step_time  +/METRIC_NAME=Step_Time  
-! /generate_mean_and_stddev=true  +! /GENERATE_MEAN_AND_STDDEV=TRUE  
-! /append_to_existing_values=false +! /APPEND_TO_EXISTING_VALUES=FALSE 
 ; ;
  
-calculate step_time from lhs to rhs - append onto previous step_time +Calculate Step_Time from LHS to RHS - append onto previous Step_Time 
-generate mean and std dev +Generate Mean and STD DEV 
-time_between_events  +Time_Between_Events  
-/event_sequence=lhs+rhs  +/EVENT_SEQUENCE=LHS+RHS  
-/exclude_events=  +/EXCLUDE_EVENTS=  
-/metric_name=step_time  +/METRIC_NAME=Step_Time  
-! /generate_mean_and_stddev=true  +! /GENERATE_MEAN_AND_STDDEV=TRUE  
-/append_to_existing_values=true +/APPEND_TO_EXISTING_VALUES=TRUE 
 ; ;
  
-calculate left_stance_time from lhs to lto +Calculate Left_Stance_Time from LHS to LTO 
-generate mean and std dev +Generate Mean and STD DEV 
-time_between_events  +Time_Between_Events  
-/event_sequence=lhs+lto  +/EVENT_SEQUENCE=LHS+LTO  
-/exclude_events=  +/EXCLUDE_EVENTS=  
-/metric_name=left_stance_time  +/METRIC_NAME=Left_Stance_Time  
-! /generate_mean_and_stddev=true  +! /GENERATE_MEAN_AND_STDDEV=TRUE  
-! /append_to_existing_values=false +! /APPEND_TO_EXISTING_VALUES=FALSE 
  
  
-calculate right_stance_time from rhs to rto +Calculate Right_Stance_Time from RHS to RTO 
-generate mean and std dev +Generate Mean and STD DEV 
-time_between_events  +Time_Between_Events  
-/event_sequence=rhs+rto  +/EVENT_SEQUENCE=RHS+RTO  
-/exclude_events=  +/EXCLUDE_EVENTS=  
-/metric_name=right_stance_time  +/METRIC_NAME=Right_Stance_Time  
-! /generate_mean_and_stddev=true  +! /GENERATE_MEAN_AND_STDDEV=TRUE  
-! /append_to_existing_values=false +! /APPEND_TO_EXISTING_VALUES=FALSE 
 ; ;
  
-calculate left_swing_time from lto to lhs +Calculate Left_Swing_Time from LTO to LHS 
-generate mean and std dev +Generate Mean and STD DEV 
-time_between_events  +Time_Between_Events  
-/event_sequence=lto+lhs  +/EVENT_SEQUENCE=LTO+LHS  
-/exclude_events=  +/EXCLUDE_EVENTS=  
-/metric_name=left_swing_time  +/METRIC_NAME=Left_Swing_Time  
-! /generate_mean_and_stddev=true  +! /GENERATE_MEAN_AND_STDDEV=TRUE  
-! /append_to_existing_values=false +! /APPEND_TO_EXISTING_VALUES=FALSE 
 ; ;
  
-calculate right_swing_time from rto to rhs +Calculate Right_Swing_Time from RTO to RHS 
-generate mean and std dev +Generate Mean and STD DEV 
-time_between_events  +Time_Between_Events  
-/event_sequence=rto+rhs  +/EVENT_SEQUENCE=RTO+RHS  
-/exclude_events=  +/EXCLUDE_EVENTS=  
-/metric_name=right_swing_time  +/METRIC_NAME=Right_Swing_Time  
-! /generate_mean_and_stddev=true  +! /GENERATE_MEAN_AND_STDDEV=TRUE  
-! /append_to_existing_values=false +! /APPEND_TO_EXISTING_VALUES=FALSE 
 ; ;
  
-calculate left_cycle_time from lhs to lhs +Calculate Left_Cycle_Time from LHS to LHS 
-generate mean and std dev +Generate Mean and STD DEV 
-time_between_events  +Time_Between_Events  
-/event_sequence=lhs+lhs  +/EVENT_SEQUENCE=LHS+LHS  
-/exclude_events=  +/EXCLUDE_EVENTS=  
-/metric_name=left_cycle_time  +/METRIC_NAME=Left_Cycle_Time  
-! /generate_mean_and_stddev=true  +! /GENERATE_MEAN_AND_STDDEV=TRUE  
-! /append_to_existing_values=false +! /APPEND_TO_EXISTING_VALUES=FALSE 
 ; ;
  
-calculate right_cycle_time from rhs to rhs +Calculate Right_Cycle_Time from RHS to RHS 
-generate mean and std dev +Generate Mean and STD DEV 
-time_between_events  +Time_Between_Events  
-/event_sequence=rhs+rhs  +/EVENT_SEQUENCE=RHS+RHS  
-/exclude_events=  +/EXCLUDE_EVENTS=  
-/metric_name=right_cycle_time  +/METRIC_NAME=Right_Cycle_Time  
-! /generate_mean_and_stddev=true  +! /GENERATE_MEAN_AND_STDDEV=TRUE  
-! /append_to_existing_values=false +! /APPEND_TO_EXISTING_VALUES=FALSE 
 ; ;
  
-calculate cycle_time from lhs to lhs +Calculate Cycle_Time from LHS to LHS 
-generate mean and std dev +Generate Mean and STD DEV 
-time_between_events  +Time_Between_Events  
-/event_sequence=lhs+lhs  +/EVENT_SEQUENCE=LHS+LHS  
-/exclude_events=  +/EXCLUDE_EVENTS=  
-/metric_name=cycle_time  +/METRIC_NAME=Cycle_Time  
-! /generate_mean_and_stddev=true  +! /GENERATE_MEAN_AND_STDDEV=TRUE  
-! /append_to_existing_values=false +! /APPEND_TO_EXISTING_VALUES=FALSE 
 ; ;
  
-calculate cycle_time from rhs to rhs - append to previous +Calculate Cycle_Time from RHS to RHS - append to previous 
-generate mean and std dev +Generate Mean and STD DEV 
-time_between_events  +Time_Between_Events  
-/event_sequence=rhs+rhs  +/EVENT_SEQUENCE=RHS+RHS  
-/exclude_events=  +/EXCLUDE_EVENTS=  
-/metric_name=cycle_time  +/METRIC_NAME=Cycle_Time  
-! /generate_mean_and_stddev=true  +! /GENERATE_MEAN_AND_STDDEV=TRUE  
-/append_to_existing_values=true +/APPEND_TO_EXISTING_VALUES=TRUE 
  
  
-calculate right_terminal_double_limb_support from lhs to rto (exclude lto to rhs+Calculate Right_Terminal_Double_Limb_Support from LHS to RTO (exclude LTO to RHS
-generate mean and std dev +Generate Mean and STD DEV 
-time_between_events  +Time_Between_Events  
-/event_sequence=lhs+rto  +/EVENT_SEQUENCE=LHS+RTO  
-/exclude_events=lto+rhs  +/EXCLUDE_EVENTS=LTO+RHS  
-/metric_name=right_terminal_double_limb_support  +/METRIC_NAME=Right_Terminal_Double_Limb_Support  
-! /generate_mean_and_stddev=true  +! /GENERATE_MEAN_AND_STDDEV=TRUE  
-! /append_to_existing_values=false +! /APPEND_TO_EXISTING_VALUES=FALSE 
 ; ;
  
-calculate left_terminal_double_limb_support from rhs to lto (exclude rto to lhs+Calculate Left_Terminal_Double_Limb_Support from RHS to LTO (exclude RTO to LHS
-generate mean and std dev +Generate Mean and STD DEV 
-time_between_events  +Time_Between_Events  
-/event_sequence=rhs+lto  +/EVENT_SEQUENCE=RHS+LTO  
-/exclude_events=rto+lhs  +/EXCLUDE_EVENTS=RTO+LHS  
-/metric_name=left_terminal_double_limb_support  +/METRIC_NAME=Left_Terminal_Double_Limb_Support  
-! /generate_mean_and_stddev=true  +! /GENERATE_MEAN_AND_STDDEV=TRUE  
-! /append_to_existing_values=false +! /APPEND_TO_EXISTING_VALUES=FALSE 
 ; ;
  
-calculate right_initial_double_limb_support_time from rhs to lto (exclude lhs to rto+Calculate Right_Initial_Double_Limb_Support_Time from RHS to LTO (exclude LHS to RTO
-generate mean and std dev +Generate Mean and STD DEV 
-time_between_events  +Time_Between_Events  
-/event_sequence=rhs+lto  +/EVENT_SEQUENCE=RHS+LTO  
-/exclude_events=lhs+rto  +/EXCLUDE_EVENTS=LHS+RTO  
-/metric_name=right_initial_double_limb_support_time  +/METRIC_NAME=Right_Initial_Double_Limb_Support_Time  
-! /generate_mean_and_stddev=true  +! /GENERATE_MEAN_AND_STDDEV=TRUE  
-! /append_to_existing_values=false +! /APPEND_TO_EXISTING_VALUES=FALSE 
 ; ;
  
-calculate left_initial_double_limb_support_time from lhs to rto (exclude rhs to lto+Calculate Left_Initial_Double_Limb_Support_Time from LHS to RTO (exclude RHS to LTO
-generate mean and std dev +Generate Mean and STD DEV 
-time_between_events  +Time_Between_Events  
-/event_sequence=lhs+rto  +/EVENT_SEQUENCE=LHS+RTO  
-/exclude_events=rhs+lto  +/EXCLUDE_EVENTS=RHS+LTO  
-/metric_name=left_initial_double_limb_support_time  +/METRIC_NAME=Left_Initial_Double_Limb_Support_Time  
-! /generate_mean_and_stddev=true  +! /GENERATE_MEAN_AND_STDDEV=TRUE  
-! /append_to_existing_values=false +! /APPEND_TO_EXISTING_VALUES=FALSE 
 ; ;
  
-select global as active file +Select Global as active file 
-select_active_file  +Select_Active_File  
-/file_name=global +/FILE_NAME=GLOBAL 
 ; ;
  
-calculate double_limb_support_time by adding right_terminal_double_limb_support_mean +Calculate Double_Limb_Support_Time by adding Right_Terminal_Double_Limb_Support_MEAN 
-! and right_initial_double_limb_support_time_mean   +! and Right_Initial_Double_Limb_Support_Time_MEAN   
-add_signals  +Add_Signals  
-/signal_types=metric+metric +/SIGNAL_TYPES=METRIC+METRIC 
-/signal_names=right_terminal_double_limb_support_mean+right_initial_double_limb_support_time_mean +/SIGNAL_NAMES=Right_Terminal_Double_Limb_Support_MEAN+Right_Initial_Double_Limb_Support_Time_MEAN 
-/signal_folder=processed+processed  +/SIGNAL_FOLDER=PROCESSED+PROCESSED  
-/result_name=double_limb_support_time +/RESULT_NAME=Double_Limb_Support_Time 
  
  
-select all_files as active file +Select ALL_FILES as active file 
-select_active_file  +Select_Active_File  
-/file_name=all_files +/FILE_NAME=ALL_FILES 
 ; ;
  
-calculate the stride vector mangitude +Calculate the stride vector mangitude 
-signal_magnitude  +Signal_Magnitude  
-/signal_types=metric  +/SIGNAL_TYPES=METRIC  
-/signal_names=stridevectors  +/SIGNAL_NAMES=StrideVectors  
-/signal_folder=processed  +/SIGNAL_FOLDER=PROCESSED  
-/result_name=stridevectorsmagnitude +/RESULT_NAME=StrideVectorsMagnitude 
 ; ;
  
-calculate stride length from the stide vector magnitude  +Calculate Stride Length from the stide vector magnitude  
-generate_metric  +Generate_Metric  
-/signal_types=metric  +/SIGNAL_TYPES=METRIC  
-/signal_names=stridevectorsmagnitude  +/SIGNAL_NAMES=StrideVectorsMagnitude  
-/signal_folder=processed  +/SIGNAL_FOLDER=PROCESSED  
-/metric_process=mean  +/METRIC_PROCESS=MEAN  
-/metric_name=stride_length  +/METRIC_NAME=Stride_Length  
-! /append_suffix=false  +! /APPEND_SUFFIX=FALSE  
-! /range_start=  +! /RANGE_START=  
-! /range_end+! /RANGE_END
  
 </code> </code>
  
-===== example modification =====+==== Example Modification ==== 
 + 
 +**Customer Request:**
  
-**customer request:**+I am using the temporal distance (with metric pipeline commands) script from your website, however, I'd like to calculate the parameters by stride instead of using the Global StrideVectors_MEAN. First, I calculated vector between events to create a Right StrideVectors and Left StrideVectors. To compute stride width, do I cross the LeftStep vectors with the Left StrideVectors or Right StrideVectors.
  
-i am using the temporal distance (with metric pipeline commands) script from your website, however, i'd like to calculate the parameters by stride instead of using the global stridevectors_mean. first, i calculated vector between events to create a right stridevectors and left stridevectors. to compute stride width, do i cross the leftstep vectors with the left stridevectors or right stridevectors. +**Response:**
-**response:**+
  
-you would cross the left with the right if you want the starting event to match. +You would cross the left with the right if you want the starting event to match. 
-one problem you are going to run into is that there won't always be a matching stride vector for each step vector. to fix this, you might want to create new hs and to events for each side calculation so that you will always have the correct number of events to calculate the metrics. +One problem you are going to run into is that there won't always be a matching stride vector for each step vector. To fix this, you might want to create new HS and TO events for each side calculation so that you will always have the correct number of events to calculate the metrics. 
-in the following, rs and ls stand for right stride, and left stride+In the following, RS and LS stand for Right Stride, and Left Stride
-for example, for the left step length and width calculations you would create new events rs_lhsrs_lto, such that the left side events are created from event_copy using lhs and lto as the event to copy, but only if it occurs in the right stride (rsevent_sequence rhs+rhsdo the same for the right side. calculate the left strides using lhs, right strides using rhscalculate the left steps metrics using rs_rhs to rs_lhs against the right strides, and the right step metrics using ls_lhs to ls_rhs against the left strides. +For example, for the left step length and width calculations you would create new events RS_LHSRS_LTO, such that the left side events are created from Event_Copy using LHS and LTO as the event to copy, but only if it occurs in the Right Stride (RSEVENT_SEQUENCE RHS+RHSDo the same for the right side. Calculate the left strides using LHS, right strides using RHSCalculate the left steps metrics using RS_RHS to RS_LHS against the right strides, and the right step metrics using LS_LHS to LS_RHS against the left strides. 
-you will end up with fewer metrics this way than with our default way of calculating metrics against the average motion file walking direction. your method will be more accurate if the subject is walking a curved path.+You will end up with fewer metrics this way than with our default way of calculating metrics against the average motion file walking direction. Your method will be more accurate if the subject is walking a curved path.
  
  
visual3d/documentation/pipeline/signal_commands/mimicking_temporal_distance_command.1718801593.txt.gz · Last modified: 2024/06/19 12:53 by sgranger