Skip to content

Commit

Permalink
Merge 3a48c41 into d08d512
Browse files Browse the repository at this point in the history
  • Loading branch information
jlumpe committed Jul 16, 2020
2 parents d08d512 + 3a48c41 commit 45ba5bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/vantage_point_tree.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ struct VPTree{InputType, MetricReturnType}
data::Vector{InputType}
metric
root::Node{InputType, MetricReturnType}
MetricReturnType::DataType
threaded::Bool
function VPTree(data::Vector{InputType}, metric; threaded=nothing) where InputType
threaded = _check_threaded(threaded)
Expand All @@ -59,7 +58,7 @@ struct VPTree{InputType, MetricReturnType}
MetricReturnType = typeof(metric(data[1], data[1]))
indexed_data = Random.shuffle!(collect(enumerate(data)))
root = threaded ? _construct_tree_rec_threaded!(indexed_data, metric, MetricReturnType) : _construct_tree_rec!(indexed_data, metric, MetricReturnType)
new{InputType, MetricReturnType}(data, metric, root, MetricReturnType, threaded)
new{InputType, MetricReturnType}(data, metric, root, threaded)
end
end

Expand Down

0 comments on commit 45ba5bf

Please sign in to comment.