We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, I'm completely new to Julia, so my solution is not probably the best.
fastdtw.jl
fastdtw
function fastdtw( seq1::AbstractArray, seq2::AbstractArray, radius::Int, dist::SemiMetric=SqEuclidean() ) if !isa(seq1, Sequence) seq1 = Sequence(seq1) end if !isa(seq2, Sequence) seq2 = Sequence(seq2) end
And compress2 function (line 94):
compress2
function compress2(seq::Sequence) # Navg = div(length(seq), 2) evenseq = 0.5*(seq[1:2:end-1]+seq[2:2:end]) if length(seq)%2 == 1 return Sequence(hcat(evenseq, seq[end])) end Sequence(evenseq) end
dtw.jl
D = zeros(T, m, n)
with
D = zeros(eltype(T), m, n)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
I'm completely new to Julia, so my solution is not probably the best.
fastdtw.jl
substitute lines 8-13 (fastdtw
signature) with:And
compress2
function (line 94):dtw.jl
line 54 substitute:with
The text was updated successfully, but these errors were encountered: