Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

sdynpy.signal_processing.sdynpy_srs.generate_single_windowed_random_realization

Signature

def sdynpy.signal_processing.sdynpy_srs.generate_single_windowed_random_realization(ref_srs: numpy.ndarray, window: numpy.ndarray, sample_rate: float, gravity: float = 386.0, damping: float = 0.03, srs_type: int = 9, match_points_per_octave: float = 4.0, output_points_per_octave: float = 12.0, amp_init: Optional[numpy.ndarray] = None, phase_init: Optional[numpy.ndarray] = None, iterations: int = 10, correction: float = 0.8, error_tolerance: float = 0.05, randomize_phase: bool = False, max_frequency: Optional[float] = None, rng: Optional[numpy.random._generator.Generator] = None) -> Dict[str, Any]

Generate a single windowed random realization matched to a target SRS.

Parameters

Returns

Raises

Notes

This function is the numerical core corresponding to one pass through the MATLAB wrcomp_tdh / gwinrand workflow.