hookeai.simulators.links.utilities.links_plot_tfact.scale_tfact_hist¶
- scale_tfact_hist(tfact_hist, scale_factor=1.0)[source]¶
Perform linear scaling of total load factor history.
- Parameters:
tfact_hist (np.ndarray(2d)) – Total load factor history stored as numpy.ndarray(2d) of shape (n_time, 2), where the discrete time is stored in array[:, 0] and the total load factor in array[:, 1].
scale_factor (float, default=1.0) – Linear scaling factor.
- Returns:
tfact_hist_scaled – Total load factor history stored as numpy.ndarray(2d) of shape (n_time, 2), where the discrete time is stored in array[:, 0] and the total load factor in array[:, 1].
- Return type:
np.ndarray(2d)