de.lmu.ifi.dbs.elki.logging.Logging.isDebuggingFiner()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(9.4k)|赞(0)|评价(0)|浏览(110)

本文整理了Java中de.lmu.ifi.dbs.elki.logging.Logging.isDebuggingFiner()方法的一些代码示例,展示了Logging.isDebuggingFiner()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logging.isDebuggingFiner()方法的具体详情如下:
包路径:de.lmu.ifi.dbs.elki.logging.Logging
类名称:Logging
方法名:isDebuggingFiner

Logging.isDebuggingFiner介绍

[英]Test whether to log 'debug' at 'FINER' level
[中]测试是否在“更精细”级别记录“调试”

代码示例

代码示例来源:origin: elki-project/elki

/**
 * Constructor.
 *
 * Note: there will usually be two instances created. One for handling the
 * image type, one for the URL handling. This is ok.
 */
public ThumbnailRegistryEntry() {
 super("Internal", PRIORITY, new String[0], new String[] { INTERNAL_MIME_TYPE });
 if(LOG.isDebuggingFiner()) {
  LOG.debugFiner("Registry initialized.");
 }
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-batik-visualization

/**
 * Constructor.
 * 
 * Note: there will usually be two instances created. One for handling the
 * image type, one for the URL handling. This is ok.
 */
public ThumbnailRegistryEntry() {
 super("Internal", PRIORITY, new String[0], new String[] { INTERNAL_MIME_TYPE });
 if(LOG.isDebuggingFiner()) {
  LOG.debugFiner("Registry initialized.");
 }
}

代码示例来源:origin: elki-project/elki

/**
 * Open a new stream of the given name
 * 
 * @param name file name (which will be appended to the base name)
 * @return stream object for the given name
 * @throws IOException
 */
private PrintStream newStream(String name) throws IOException {
 if(LOG.isDebuggingFiner()) {
  LOG.debugFiner("Requested stream: " + name);
 }
 // Ensure the directory exists:
 if(!basename.exists()) {
  basename.mkdirs();
 }
 String fn = basename.getAbsolutePath() + File.separator + name + EXTENSION;
 fn = usegzip ? fn + GZIP_EXTENSION : fn;
 OutputStream os = new FileOutputStream(fn);
 if(usegzip) {
  // wrap into gzip stream.
  os = new GZIPOutputStream(os);
 }
 PrintStream res = new PrintStream(os);
 if(LOG.isDebuggingFiner()) {
  LOG.debugFiner("Opened new output stream:" + fn);
 }
 // cache.
 return res;
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki

if (LOG.isDebuggingFiner()) {
 LOG.debugFiner("Requested stream: " + name);
if (LOG.isDebuggingFiner()) {
 LOG.debugFiner("Opened new output stream:" + fn);

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-classification

/**
  * Align the labels for a label query.
  * 
  * @param l1 List of reference labels
  * @param d1 Probabilities for these labels
  * @param l2 List of requested labels
  * @return Probabilities in desired output order
  */
 protected double[] alignLabels(List<ClassLabel> l1, double[] d1, Collection<ClassLabel> l2) {
  assert (l1.size() == d1.length);
  if(l1 == l2) {
   return d1.clone();
  }
  double[] d2 = new double[l2.size()];
  Iterator<ClassLabel> i2 = l2.iterator();
  for(int i = 0; i2.hasNext();) {
   ClassLabel l = i2.next();
   int idx = l1.indexOf(l);
   if(idx < 0 && getLogger().isDebuggingFiner()) {
    getLogger().debugFiner("Label not found: " + l);
   }
   d2[i] = (idx >= 0) ? d1[idx] : 0.; // Default to 0 for unknown labels!
  }
  return d2;
 }
}

代码示例来源:origin: elki-project/elki

/**
  * Align the labels for a label query.
  * 
  * @param l1 List of reference labels
  * @param d1 Probabilities for these labels
  * @param l2 List of requested labels
  * @return Probabilities in desired output order
  */
 protected double[] alignLabels(List<ClassLabel> l1, double[] d1, Collection<ClassLabel> l2) {
  assert (l1.size() == d1.length);
  if(l1 == l2) {
   return d1.clone();
  }
  double[] d2 = new double[l2.size()];
  Iterator<ClassLabel> i2 = l2.iterator();
  for(int i = 0; i2.hasNext();) {
   ClassLabel l = i2.next();
   int idx = l1.indexOf(l);
   if(idx < 0 && getLogger().isDebuggingFiner()) {
    getLogger().debugFiner("Label not found: " + l);
   }
   d2[i] = (idx >= 0) ? d1[idx] : 0.; // Default to 0 for unknown labels!
  }
  return d2;
 }
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki

/**
  * Align the labels for a label query.
  * 
  * @param l1 List of reference labels
  * @param d1 Probabilities for these labels
  * @param l2 List of requested labels
  * @return Probabilities in desired output order
  */
 protected double[] alignLabels(List<ClassLabel> l1, double[] d1, Collection<ClassLabel> l2) {
  assert (l1.size() == d1.length);
  if(l1 == l2) {
   return d1.clone();
  }
  double[] d2 = new double[l2.size()];
  Iterator<ClassLabel> i2 = l2.iterator();
  for(int i = 0; i2.hasNext();) {
   ClassLabel l = i2.next();
   int idx = l1.indexOf(l);
   if(idx < 0 && getLogger().isDebuggingFiner()) {
    getLogger().debugFiner("Label not found: " + l);
   }
   d2[i] = (idx >= 0) ? d1[idx] : 0.; // Default to 0 for unknown labels!
  }
  return d2;
 }
}

代码示例来源:origin: elki-project/elki

/**
 * Put an image into the repository (note: the repository is only keeping a
 * weak reference!)
 *
 * @param img Image to put
 * @return Key
 */
public static int registerImage(RenderedImage img) {
 synchronized(images) {
  int key = counter;
  counter++;
  assert (images.get(key) == null);
  images.put(key, new SoftReference<>(img));
  // Reorganize map, purge old entries
  if(counter % 50 == 49) {
   for(Iterator<SoftReference<RenderedImage>> iter = images.values().iterator(); iter.hasNext();) {
    SoftReference<RenderedImage> ref = iter.next();
    if(ref == null || ref.get() == null) {
     iter.remove();
    }
   }
  }
  if(LOG.isDebuggingFiner()) {
   LOG.debugFiner("Registered image: " + key);
  }
  return key;
 }
}

代码示例来源:origin: elki-project/elki

if(LOG.isDebuggingFiner()) {
 LOG.debugFiner(new StringBuilder().append("heap.size: ").append(heap.size()).toString());

代码示例来源:origin: elki-project/elki

if(getLogger().isDebuggingFiner()) {
 StringBuilder msg = new StringBuilder();
 msg.append("pageNo ").append(root.getPageID());

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-index-rtree

if(getLogger().isDebuggingFiner()) {
 StringBuilder msg = new StringBuilder();
 msg.append("pageNo ").append(root.getPageID());

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki

if(getLogger().isDebuggingFiner()) {
 StringBuilder msg = new StringBuilder();
 msg.append("pageNo ").append(root.getPageID());

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-batik-visualization

if(LOG.isDebuggingFiner()) {
 LOG.debugFiner("handleURL " + url.toString());

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-index-rtree

/**
 * Creates and returns the directory nodes for bulk load.
 * 
 * @param nodes the nodes to be inserted
 * @return the directory nodes containing the nodes
 */
private List<E> createBulkDirectoryNodes(List<E> nodes) {
 int minEntries = dirMinimum;
 int maxEntries = dirCapacity - 1;
 ArrayList<E> result = new ArrayList<>();
 List<List<E>> partitions = settings.bulkSplitter.partition(nodes, minEntries, maxEntries);
 for(List<E> partition : partitions) {
  // create node
  N dirNode = createNewDirectoryNode();
  // insert nodes
  for(E o : partition) {
   dirNode.addDirectoryEntry(o);
  }
  // write to file
  writeNode(dirNode);
  result.add(createNewDirectoryEntry(dirNode));
  if(getLogger().isDebuggingFiner()) {
   getLogger().debugFiner("Directory page no: "+dirNode.getPageID());
  }
 }
 return result;
}

代码示例来源:origin: elki-project/elki

/**
 * Creates and returns the directory nodes for bulk load.
 * 
 * @param nodes the nodes to be inserted
 * @return the directory nodes containing the nodes
 */
private List<E> createBulkDirectoryNodes(List<E> nodes) {
 int minEntries = dirMinimum;
 int maxEntries = dirCapacity - 1;
 ArrayList<E> result = new ArrayList<>();
 List<List<E>> partitions = settings.bulkSplitter.partition(nodes, minEntries, maxEntries);
 for(List<E> partition : partitions) {
  // create node
  N dirNode = createNewDirectoryNode();
  // insert nodes
  for(E o : partition) {
   dirNode.addDirectoryEntry(o);
  }
  // write to file
  writeNode(dirNode);
  result.add(createNewDirectoryEntry(dirNode));
  if(getLogger().isDebuggingFiner()) {
   getLogger().debugFiner("Directory page no: "+dirNode.getPageID());
  }
 }
 return result;
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki

/**
 * Creates and returns the directory nodes for bulk load.
 * 
 * @param nodes the nodes to be inserted
 * @return the directory nodes containing the nodes
 */
private List<E> createBulkDirectoryNodes(List<E> nodes) {
 int minEntries = dirMinimum;
 int maxEntries = dirCapacity - 1;
 ArrayList<E> result = new ArrayList<>();
 List<List<E>> partitions = settings.bulkSplitter.partition(nodes, minEntries, maxEntries);
 for(List<E> partition : partitions) {
  // create node
  N dirNode = createNewDirectoryNode();
  // insert nodes
  for(E o : partition) {
   dirNode.addDirectoryEntry(o);
  }
  // write to file
  writeNode(dirNode);
  result.add(createNewDirectoryEntry(dirNode));
  if(getLogger().isDebuggingFiner()) {
   getLogger().debugFiner("Directory page no: "+dirNode.getPageID());
  }
 }
 return result;
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-batik-visualization

/**
 * Put an image into the repository (note: the repository is only keeping a
 * weak reference!)
 * 
 * @param img Image to put
 * @return Key
 */
public static int registerImage(RenderedImage img) {
 synchronized(images) {
  int key = counter;
  counter++;
  assert (images.get(key) == null);
  images.put(key, new SoftReference<>(img));
  // Reorganize map, purge old entries
  if(counter % 50 == 49) {
   for(TIntObjectIterator<SoftReference<RenderedImage>> iter = images.iterator(); iter.hasNext();) {
    iter.advance();
    if(iter.value() == null || iter.value().get() == null) {
     iter.remove();
    }
   }
  }
  if(LOG.isDebuggingFiner()) {
   LOG.debugFiner("Registered image: " + key);
  }
  return key;
 }
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki

/**
 * Serialize outlier metadata as JSON.
 *
 * @param re Output buffer
 * @param meta Metadata
 */
private void outlierMetaToJSON(JSONBuffer re, OutlierScoreMeta meta) {
 re.appendKeyHash("meta");
 re.appendKeyValue("min", meta.getActualMinimum());
 re.appendKeyValue("max", meta.getActualMaximum());
 re.appendKeyValue("tmin", meta.getTheoreticalMinimum());
 re.appendKeyValue("tmax", meta.getTheoreticalMaximum());
 re.appendKeyValue("base", meta.getTheoreticalBaseline());
 re.appendKeyValue("type", meta.getClass().getSimpleName());
 re.closeHash();
 if(LOG.isDebuggingFiner()) {
  re.appendNewline();
 }
}

代码示例来源:origin: elki-project/elki

if(LOG.isDebuggingFiner()) {
 LOG.debugFiner("handleURL " + url.toString());

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki

if(getLogger().isDebuggingFiner()) {
 getLogger().debugFiner("node " + subtree + ", depth " + depth);

相关文章