-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
EchelleCCFs.jl/src/mask_shapes/gaussian.jl
Lines 19 to 26 in a639217
| """ GaussianCCFMask( σ ; half_truncation_width_in_σ=2 ) """ | |
| function GaussianCCFMask(σ::Real, w::Real=2 ) | |
| @assert 0 < σ <= 300000 # 300km/s is arbitrary choice for an upper limit | |
| @assert 0 < w <= 4 | |
| norm = 1.0/(sqrt(2π)*σ*erf(w/(sqrt(2.0)))) | |
| cdf_norm = 0.5/(erf(w/(sqrt(2.0)))) | |
| new(σ*sqrt(2.0),σ*w,norm,cdf_norm) | |
| end |
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation