|
jklustor-overlap-0.0.2-20140619012940 (ChemAxon) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectcom.chemaxon.overlap.bruteforce.Dissimilarities
class Dissimilarities
Multiple dissimilarity result values.
This class represents multiple dissimilarity result values with associated IDs. The values can be interpreted as best values for multiple queries or top-n best values for a single query.
Field Summary | |
---|---|
protected double[] |
dissimArray
Dissimilarity values for the IDs; |
protected int[] |
idArray
Represented target IDs. |
Constructor Summary | |
---|---|
Dissimilarities(int size)
Initialize with invalid values. |
Method Summary | |
---|---|
(package private) double[] |
getDissimArray()
Best dissimilarities array. |
(package private) int[] |
getIdArray()
Best IDs array. |
void |
insertSorted(double dissim,
int id)
Merge another ID/dissimilarity value into sorted. |
(package private) void |
mergeDistinct(Dissimilarities another)
Merge another instance with. |
void |
mergeSorted(Dissimilarities another)
Merge another instance. |
void |
mergeSorted(Dissimilarities another,
int shiftAnotherIds)
Merge another instance. |
ImmutableList<SimilarityResultNode> |
toList()
Create list representation. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final int[] idArray
protected final double[] dissimArray
Constructor Detail |
---|
Dissimilarities(int size)
size
- Number of queries stored.Method Detail |
---|
int[] getIdArray()
double[] getDissimArray()
void mergeDistinct(Dissimilarities another)
Merged instance is left intact; this will be updated according to the best dissimilarity values for each index position.
Both array must have the same size.
another
- Another instance to mergepublic void insertSorted(double dissim, int id)
dissim
- Dissimilarity value to mergeid
- Associated IDpublic void mergeSorted(Dissimilarities another)
Merged instance is left intact; this will be updated.
Size of this instance is not changed; this instance will contain best dissimilarities of the union of the two merged instances.
another
- Another instance to mergepublic void mergeSorted(Dissimilarities another, int shiftAnotherIds)
Merged instance is left intact; this will be updated.
Size of this instance is not changed; this instance will contain best dissimilarities of the union of the two merged instances.
another
- Another instance to mergeshiftAnotherIds
- Add value to IDs from another arraypublic ImmutableList<SimilarityResultNode> toList()
|
jklustor-overlap-0.0.2-20140619012940 (ChemAxon) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |