Tabnine Logo
PointerHierarchyRepresentationBuilder.isLinked
Code IndexAdd Tabnine to your IDE (free)

How to use
isLinked
method
in
de.lmu.ifi.dbs.elki.algorithm.clustering.hierarchical.PointerHierarchyRepresentationBuilder

Best Java code snippets using de.lmu.ifi.dbs.elki.algorithm.clustering.hierarchical.PointerHierarchyRepresentationBuilder.isLinked (Showing top 20 results out of 315)

origin: elki-project/elki

/**
 * Shrink the active set: if the last x objects are all merged, we can reduce
 * the working size accordingly.
 * 
 * @param ix Object iterator
 * @param builder Builder to detect merged status
 * @param end Current active set size
 * @param x Last merged object
 * @return New active set size
 */
protected static int shrinkActiveSet(DBIDArrayIter ix, PointerHierarchyRepresentationBuilder builder, int end, int x) {
 if(x == end - 1) { // Can truncate active set.
  while(builder.isLinked(ix.seek(--end - 1))) {
   // Everything happens in while condition already.
  }
 }
 return end;
}
origin: de.lmu.ifi.dbs.elki/elki-clustering

/**
 * Shrink the active set: if the last x objects are all merged, we can reduce
 * the working size accordingly.
 * 
 * @param ix Object iterator
 * @param builder Builder to detect merged status
 * @param end Current active set size
 * @param x Last merged object
 * @return New active set size
 */
protected static int shrinkActiveSet(DBIDArrayIter ix, PointerHierarchyRepresentationBuilder builder, int end, int x) {
 if(x == end - 1) { // Can truncate active set.
  while(builder.isLinked(ix.seek(--end - 1))) {
   // Everything happens in while condition already.
  }
 }
 return end;
}
origin: elki-project/elki

/**
 * Find an unlinked object.
 *
 * @param pos Starting position
 * @param end End position
 * @param ix Iterator to translate into DBIDs
 * @param builder Linkage information
 * @return Position
 */
public static int findUnlinked(int pos, int end, DBIDArrayIter ix, PointerHierarchyRepresentationBuilder builder) {
 while(pos < end) {
  if(!builder.isLinked(ix.seek(pos))) {
   return pos;
  }
  ++pos;
 }
 return -1;
}
origin: de.lmu.ifi.dbs.elki/elki-clustering

/**
 * Find an unlinked object.
 *
 * @param pos Starting position
 * @param end End position
 * @param ix Iterator to translate into DBIDs
 * @param builder Linkage information
 * @return Position
 */
public static int findUnlinked(int pos, int end, DBIDArrayIter ix, PointerHierarchyRepresentationBuilder builder) {
 while(pos < end) {
  if(!builder.isLinked(ix.seek(pos))) {
   return pos;
  }
  ++pos;
 }
 return -1;
}
origin: elki-project/elki

if(builder.isLinked(ix.seek(ox))) {
 continue;
for(int oy = 0; oy < ox; oy++) {
 if(builder.isLinked(iy.seek(oy))) {
  continue;
origin: de.lmu.ifi.dbs.elki/elki

if(builder.isLinked(ix.seek(ox))) {
 continue;
for(int oy = 0; oy < ox; oy++) {
 if(builder.isLinked(iy.seek(oy))) {
  continue;
origin: de.lmu.ifi.dbs.elki/elki-clustering

if(builder.isLinked(ix.seek(ox))) {
 continue;
for(int oy = 0; oy < ox; oy++) {
 if(builder.isLinked(iy.seek(oy))) {
  continue;
origin: elki-project/elki

if(builder.isLinked(ix.seek(dx))) {
 continue;
 if(builder.isLinked(iy.seek(dy))) {
  continue;
origin: de.lmu.ifi.dbs.elki/elki-clustering

if(builder.isLinked(ix.seek(dx))) {
 continue;
 if(builder.isLinked(iy.seek(dy))) {
  continue;
origin: elki-project/elki

if(builder.isLinked(ij.seek(j))) {
 continue;
if(builder.isLinked(ij.seek(j))) {
 continue;
if(builder.isLinked(ij.seek(j))) {
 continue;
origin: de.lmu.ifi.dbs.elki/elki

if(builder.isLinked(ij.seek(j))) {
 continue;
if(builder.isLinked(ij.seek(j))) {
 continue;
if(builder.isLinked(ij.seek(j))) {
 continue;
origin: de.lmu.ifi.dbs.elki/elki-clustering

if(builder.isLinked(ij.seek(j))) {
 continue;
if(builder.isLinked(ij.seek(j))) {
 continue;
if(builder.isLinked(ij.seek(j))) {
 continue;
origin: elki-project/elki

if(builder.isLinked(ij.seek(j))) {
 continue;
if(builder.isLinked(ij.seek(j))) {
 continue;
if(builder.isLinked(ij.seek(j))) {
 continue;
origin: elki-project/elki

for(; b < a; b++) {
 if(builder.isLinked(iy.seek(b))) {
  continue;
for(; a < size; a++) {
 if(builder.isLinked(ix.seek(a))) {
  continue;
origin: de.lmu.ifi.dbs.elki/elki-clustering

for(; b < a; b++) {
 if(builder.isLinked(iy.seek(b))) {
  continue;
for(; a < size; a++) {
 if(builder.isLinked(ix.seek(a))) {
  continue;
origin: elki-project/elki

for(iy.seek(0); iy.getOffset() < c; iy.advance()) {
 if(builder.isLinked(iy)) {
  continue;
for(ix.seek(c + 1); ix.valid(); ix.advance()) {
 if(builder.isLinked(ix)) {
  continue;
origin: de.lmu.ifi.dbs.elki/elki-clustering

for(iy.seek(0); iy.getOffset() < c; iy.advance()) {
 if(builder.isLinked(iy)) {
  continue;
for(ix.seek(c + 1); ix.valid(); ix.advance()) {
 if(builder.isLinked(ix)) {
  continue;
origin: de.lmu.ifi.dbs.elki/elki

if(x == wsize - 1) {
 --wsize;
 for(ix.seek(wsize - 1); builder.isLinked(ix); ix.retract()) {
  --wsize;
origin: de.lmu.ifi.dbs.elki/elki

if(x == wsize - 1) {
 --wsize;
 for(ix.seek(wsize - 1); builder.isLinked(ix); ix.retract()) {
  --wsize;
origin: elki-project/elki

final int ta = MatrixParadigm.triangleSize(a);
for(int i = 0; i < a; i++) {
 if(i != b && !builder.isLinked(ix.seek(i))) {
  double dist = distances[ta + i];
  if(dist < minDist) {
 if(i != b && !builder.isLinked(ix.seek(i))) {
  double dist = distances[MatrixParadigm.triangleSize(i) + a];
  if(dist < minDist) {
de.lmu.ifi.dbs.elki.algorithm.clustering.hierarchicalPointerHierarchyRepresentationBuilderisLinked

Javadoc

Test if an object is already linked.

Popular methods of PointerHierarchyRepresentationBuilder

  • <init>
    Constructor.
  • add
    Add an element to the pointer representation. Important: If an algorithm does not produce links in a
  • complete
    Finalize the result.
  • getSize
    Get the cluster size of the current object.
  • setSize
    Set the cluster size of an object.

Popular in Java

  • Reading from database using SQL prepared statement
  • getSystemService (Context)
  • putExtra (Intent)
  • onRequestPermissionsResult (Fragment)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Reference (javax.naming)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now