rename of some types
This commit is contained in:
parent
7285e5cf4f
commit
fe851cce46
3 changed files with 10 additions and 10 deletions
|
@ -3,7 +3,7 @@ export ISM
|
||||||
function ISM(
|
function ISM(
|
||||||
array::TxRxArray,
|
array::TxRxArray,
|
||||||
tx::TxRx,
|
tx::TxRx,
|
||||||
room::Room,
|
room::AbstractRoom,
|
||||||
config::ISMConfig;
|
config::ISMConfig;
|
||||||
)
|
)
|
||||||
Pn, o, B = array.p, array.origin, array.B
|
Pn, o, B = array.p, array.origin, array.B
|
||||||
|
@ -17,7 +17,7 @@ end
|
||||||
function ISM(
|
function ISM(
|
||||||
rxs::AbstractVector{<:TxRx},
|
rxs::AbstractVector{<:TxRx},
|
||||||
tx::TxRx,
|
tx::TxRx,
|
||||||
room::Room,
|
room::AbstractRoom,
|
||||||
config::ISMConfig;
|
config::ISMConfig;
|
||||||
)
|
)
|
||||||
[ISM(rx, tx, room, config) for rx in rxs]
|
[ISM(rx, tx, room, config) for rx in rxs]
|
||||||
|
|
|
@ -7,8 +7,8 @@ function synth_movement(
|
||||||
rx_path::AbstractVector{SVector{3, T}},
|
rx_path::AbstractVector{SVector{3, T}},
|
||||||
signal::AbstractVector{T},
|
signal::AbstractVector{T},
|
||||||
tx::TxRx{T},
|
tx::TxRx{T},
|
||||||
room::Room,
|
room::AbstractRoom,
|
||||||
config::RIRConfig,
|
config::AbstractRIRConfig,
|
||||||
W_max::Integer = 2^11,
|
W_max::Integer = 2^11,
|
||||||
) where {T<:Real}
|
) where {T<:Real}
|
||||||
P, N = length(rx_path), length(signal)
|
P, N = length(rx_path), length(signal)
|
||||||
|
|
12
src/types.jl
12
src/types.jl
|
@ -1,12 +1,12 @@
|
||||||
|
|
||||||
export Room, RectangularRoom
|
export AbstractRoom, RectangularRoom
|
||||||
export RIRConfig, ISMConfig
|
export AbstractRIRConfig, ISMConfig
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
abstract type Room end
|
abstract type AbstractRoom end
|
||||||
|
|
||||||
struct RectangularRoom{T<:Real} <: Room
|
struct RectangularRoom{T<:Real} <: AbstractRoom
|
||||||
c::T
|
c::T
|
||||||
L::Tuple{T, T, T}
|
L::Tuple{T, T, T}
|
||||||
β::Tuple{T, T, T, T, T, T}
|
β::Tuple{T, T, T, T, T, T}
|
||||||
|
@ -14,12 +14,12 @@ end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
abstract type RIRConfig end
|
abstract type AbstractRIRConfig end
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
struct ISMConfig{T<:Real, I<:Integer, R<:AbstractRNG} <: RIRConfig
|
struct ISMConfig{T<:Real, I<:Integer, R<:AbstractRNG} <: AbstractRIRConfig
|
||||||
order::Tuple{I, I} # Order of reflection [low, high]
|
order::Tuple{I, I} # Order of reflection [low, high]
|
||||||
fs::T # Sampling frequency
|
fs::T # Sampling frequency
|
||||||
N::I # Number of samples in impulse response
|
N::I # Number of samples in impulse response
|
||||||
|
|
Loading…
Reference in a new issue