ISMConfig struct small rewrite
This commit is contained in:
parent
f4fe65d11e
commit
02b5e91cd0
1 changed files with 8 additions and 21 deletions
29
src/types.jl
29
src/types.jl
|
@ -19,29 +19,16 @@ abstract type AbstractRIRConfig end
|
|||
"""
|
||||
|
||||
"""
|
||||
struct ISMConfig{T<:Real,I<:Integer,R<:AbstractRNG} <: AbstractRIRConfig
|
||||
order::Tuple{I,I} # Order of reflection [low, high]
|
||||
fs::T # Sampling frequency
|
||||
N::I # Number of samples in impulse response
|
||||
Wd::T # Single impulse width
|
||||
hp::Bool # High pass filter
|
||||
isd::T # Image source distortion (randomized image method)
|
||||
lrng::R
|
||||
@kwdef struct ISMConfig{T<:Real,I<:Integer,R<:AbstractRNG} <: AbstractRIRConfig
|
||||
order::Tuple{I,I} = (0, -1) # Order of reflection [low, high]
|
||||
fs::T = 16e3 # Sampling frequency
|
||||
N::I = 4000 # Number of samples in impulse response
|
||||
Wd::T = 8e-3 # Single impulse width
|
||||
hp::Bool = true # High pass filter
|
||||
isd::T = 0.0 # Image source distortion (randomized image method)
|
||||
lrng::R = GLOBAL_RNG # Local randon number generator
|
||||
end
|
||||
|
||||
function ISMConfig(
|
||||
order=(0, -1),
|
||||
fs=16000.0,
|
||||
N=4000,
|
||||
Wd=8e-3,
|
||||
hp=true,
|
||||
isd=0.0,
|
||||
lrng=GLOBAL_RNG
|
||||
)
|
||||
ISMConfig(order, fs, N, Wd, hp, isd, lrng)
|
||||
end
|
||||
|
||||
|
||||
struct Node{T<:Real}
|
||||
rx::TxRxArray{T}
|
||||
fs::T
|
||||
|
|
Loading…
Reference in a new issue