Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Joseph Siddons
GeoSpatialTools
Commits
ec6e57c5
Commit
ec6e57c5
authored
5 months ago
by
Joseph Siddons
Browse files
Options
Download
Email Patches
Plain Diff
docs(1d_neighbours): Add documentation for single value case
parent
023ffa3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
GeoSpatialTools/neighbours.py
GeoSpatialTools/neighbours.py
+2
-2
No files found.
GeoSpatialTools/neighbours.py
View file @
ec6e57c5
...
...
@@ -47,7 +47,7 @@ def find_nearest(
List of values - this is the pool of values for which we are looking
for a nearest match. This list MUST be sorted. Sortedness is not
checked, nor is the list sorted.
test : list[Numeric]
test : list[Numeric]
| Numeric
List of query values
check_sorted : bool
Optionally check that the input vals is sorted. Raises an error if set
...
...
@@ -56,7 +56,7 @@ def find_nearest(
Returns
-------
A list containing the index of the nearest neighbour in vals for each value
in test.
in test.
Or the index of the nearest neighbour if test is a single value.
"""
if
check_sorted
:
s
=
_check_sorted
(
vals
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment