Skip to content

Commit c7be758

Browse files
committed
clean up aliasingsmplr
1 parent 60d6e11 commit c7be758

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/AliasScalarSampling.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ Example
1313
struct AliasingScalarSampler
1414
domain::Vector{Float64}
1515
weights::StatsBase.ProbabilityWeights
16-
AliasingScalarSampler() = new()
17-
AliasingScalarSampler(x::Vector{<:Real}, p_x::Vector{<:Real}; SNRfloor::Float64=0.0) = begin
18-
16+
# inner constructor
17+
function AliasingScalarSampler( x::Vector{<:Real},
18+
p_x::Vector{<:Real};
19+
SNRfloor::Float64=0.0 )
20+
#
1921
# pxf = Float64.(p_x)
2022
# pxf .-= quantile(pxf, SNRfloor)
2123
# pxf[pxf .< 0.0] = 0.0

0 commit comments

Comments
 (0)