Interface INearestOperation
Inherited Members
System.IDisposable.Dispose()
Namespace: Mars.Core.Data.Wrapper
Assembly: Mars.Core.dll
Syntax
public interface INearestOperation : IOperation, IPlatform, IDisposable
Methods
| Improve this Doc View SourceNearest(Position, Int32)
Performs a constrained k-nearest neighbour query from the given
source
.
Declaration
IEnumerable<int> Nearest(Position source, int k)
Parameters
Type | Name | Description |
---|---|---|
Position | source | The source in space. |
System.Int32 | k | The amount nearest elements to retrieve. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Int32> |
Returns an ordered collection of the k-nearest neighbour data object from the given source .
The first element is the nearest data object.
|