Module:
sdynpy.doc.sdynpy_vibration_testSource: GitHub
Signature¶
def sdynpy.doc.sdynpy_vibration_test.optimal_subset(time_data: sdynpy.core.sdynpy_data.TimeHistoryArray, num_subset_samples: int, amplitude_factor: float = 0.5)Find the start index of the time subset with most stable amplitude.
Searches for a contiguous window of num_subset_samples samples that
minimises the standard deviation of RMS amplitude across channels while
remaining above a minimum amplitude threshold.
Parameters¶
time_data : TimeHistoryArray Time-domain data whose ordinate has shape
(n_channels, n_samples).num_subset_samples : int Length of the sliding window in samples.
amplitude_factor : float, optional Fraction of the peak-to-trough mean range used as the minimum acceptable window mean amplitude. Windows below this threshold are penalised. Default is 0.5.
Returns¶
int
Sample index where the optimal subset begins.