jklustor-overlap-0.0.2-20140619012940 (ChemAxon)


com.chemaxon.overlap
Interface KnnResults

All Superinterfaces:
Serializable
All Known Implementing Classes:
KnnResultsImpl

@Beta
public interface KnnResults
extends Serializable

Results of K nearest neighbors calculations.

This result object holds ordered target-query-dissimilarity triplets.

Author:
Gabor Imre

Method Summary
 double[] getDissimilarities(int index)
          Dissimilarity.
 int getK()
          Value of k.
 int[] getNeighbors(int index)
          ID of the nearest neighbors of query.
 int getQuery(int index)
          Query ID.
 int getQueryCount()
          Number of queries stored.
 

Method Detail

getK

int getK()
Value of k.

Returns:
Number of stored neighbors for each query

getQueryCount

int getQueryCount()
Number of queries stored.

Returns:
Number of queries stored

getQuery

int getQuery(int index)
Query ID.

Parameters:
index - Index
Returns:
Query ID for the given index

getNeighbors

int[] getNeighbors(int index)
ID of the nearest neighbors of query.

Parameters:
index - Index
Returns:
Nearest neighbor IDs for the given query

getDissimilarities

double[] getDissimilarities(int index)
Dissimilarity.

Parameters:
index - Index
Returns:
Dissimilarities of the nearest neighbors

jklustor-overlap-0.0.2-20140619012940 (ChemAxon)