Simulator
Realization and stream API for the Newtonian-noise scaffold simulator.
Implements the public, optional gwmock_noise.JointStrainWitnessSimulator
protocol with a physics-free placeholder statistical model. No
Newtonian-noise or seismic physics is modelled here -- this class exists
to conformance-test the public protocol, the RNG policy, the
channel/provenance types, and the compatibility adapter. The physical model
is the joint backend in :mod:gwmock_newtonian_noise.joint.
NewtonianScaffoldSimulator
¶
Physics-free scaffold implementing the public joint strain+witness protocol.
Every channel is temporally white with a fixed equicorrelation structure
between every channel pair (strain-strain, witness-witness, and
strain-witness alike): it exercises and conformance-tests
:class:~gwmock_noise.JointStrainWitnessSimulator without claiming any
Newtonian-noise or seismic physics.
Source code in src/gwmock_newtonian_noise/simulator.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 | |
channel_metadata
property
¶
Return typed metadata for every configured strain and witness channel.
metadata
property
¶
Return simulator metadata (same role as NoiseSimulator.metadata).
__init__(config)
¶
Initialize the scaffold simulator from a validated configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
NewtonianScaffoldConfig
|
Validated simulator configuration. |
required |
Source code in src/gwmock_newtonian_noise/simulator.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | |
covariance()
¶
Return the scaffold's exact, closed-form one-sided cross-spectral density.
Source code in src/gwmock_newtonian_noise/simulator.py
152 153 154 | |
from_config(config)
classmethod
¶
Construct a simulator from a validated :class:~gwmock_newtonian_noise.config.NewtonianScaffoldConfig.
Source code in src/gwmock_newtonian_noise/simulator.py
66 67 68 69 | |
generate_joint(duration, sampling_frequency, detectors, witnesses, seed=None)
¶
Generate one simultaneous, correlated strain+witness realization.
Source code in src/gwmock_newtonian_noise/simulator.py
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | |
generate_joint_stream(chunk_duration, sampling_frequency, detectors, witnesses, seed=None)
¶
Yield simultaneous strain+witness chunks lazily, preserving RNG state.
Continuation contract: after the first chunk, later chunks reuse the
same :class:~numpy.random.Generator instance without reseeding, so
concatenating consecutive chunks reproduces exactly the array a
single :meth:generate_joint call over the combined duration would
return.
Source code in src/gwmock_newtonian_noise/simulator.py
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 | |