jklustor-overlap-0.0.2-20140619012940 (ChemAxon)


com.chemaxon.overlap.bruteforce
Class SelfKnn.Report<T>

Object
  extended by com.chemaxon.overlap.bruteforce.SelfKnn.Report<T>
All Implemented Interfaces:
ResultHandler<ImmutableList<T>,Dissimilarities[]>
Enclosing class:
SelfKnn

static class SelfKnn.Report<T>
extends Object
implements ResultHandler<ImmutableList<T>,Dissimilarities[]>

Report dissimilarity vectors.

Note that according to the ResultHandler API contracts results are expected to be reported in correct ordering.


Constructor Summary
SelfKnn.Report(int queryCount, int k)
          Construct.
 
Method Summary
 long result(int sourceIndex, ImmutableList<T> s, Dissimilarities[] t)
          Report process result.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelfKnn.Report

SelfKnn.Report(int queryCount,
               int k)
Construct.

Parameters must be consistent with the processing functions SelfKnn.Calc parametrization.

Parameters:
queryCount - Number of represented queries
k - Number of nearest neighbors to record
Method Detail

result

public long result(int sourceIndex,
                   ImmutableList<T> s,
                   Dissimilarities[] t)
Description copied from interface: ResultHandler
Report process result.

Specified by:
result in interface ResultHandler<ImmutableList<T>,Dissimilarities[]>
Parameters:
sourceIndex - 0-based index of the processed source
s - The processed source
t - The result
Returns:
Number of work units to be reported

jklustor-overlap-0.0.2-20140619012940 (ChemAxon)