src/densitycalc.jl
changed.
Other files ignored by Codecov
test/runtests.jl
has changed.
71 | 71 | - `lambda:: Int64=20` : input for the smoothing function |
|
72 | 72 | ... |
|
73 | 73 | """ |
|
74 | - | function smoothe(x::Array{Float64,1}, y::Array{Float64,1}, lambda=20)::Array{Float64,1} |
|
74 | + | function smoothe(x::Array{Float64,1}, y::Array{Float64,1}, lambda=20)::Tuple{Array{Float64,1},Array{Int64,1}} |
|
75 | 75 | ||
76 | 76 | cartesians, densities = calc_densities(hcat(x, y)) |
|
77 | 77 |
85 | 85 | _' |> |
|
86 | 86 | getDensity(_, cartesians) |
|
87 | 87 | ||
88 | - | return zvalues |
|
88 | + | uqindexes = uniqueIndexes(cartesians) |
|
89 | 89 | ||
90 | + | return (zvalues,uqindexes) |
|
91 | + | ||
92 | + | end |
|
93 | + | ||
94 | + | function uniqueIndexes(cartesians::Array{CartesianIndex{2},1})::Array{Int64,1} |
|
95 | + | ctindexed = [(i,ct) for (i,ct) in enumerate(cartesians)] |
|
96 | + | uqindexes = unique(x->x[2],ctindexed) |> uqCtindexes -> getfield.(uqCtindexes,1) |
|
97 | + | ||
98 | + | uqindexes |
|
90 | 99 | end |
Files | Coverage |
---|---|
src | 100.00% |
Project Totals (2 files) | 100.00% |