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

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

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

Logging.newCounter介绍

[英]Generate a new counter.
[中]生成一个新的计数器。

代码示例

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

protected Statistics(String parent) {
 scannedBytes = LOG.isStatistics() ? LOG.newCounter(parent + ".scannedBytes") : null;
 queryTime = LOG.isStatistics() ? LOG.newCounter(parent + ".queryTime") : null;
 issuedQueries = LOG.isStatistics() ? LOG.newCounter(parent + ".issuedQueries") : null;
 refinements = LOG.isStatistics() ? LOG.newCounter(parent + ".refinements") : null;
}

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

protected Statistics(String parent) {
 scannedBytes = LOG.isStatistics() ? LOG.newCounter(parent + ".scannedBytes") : null;
 queryTime = LOG.isStatistics() ? LOG.newCounter(parent + ".queryTime") : null;
 issuedQueries = LOG.isStatistics() ? LOG.newCounter(parent + ".issuedQueries") : null;
 refinements = LOG.isStatistics() ? LOG.newCounter(parent + ".refinements") : null;
}

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

/**
 * Constructor.
 *
 * @param relation Relation to index
 * @param leafsize Maximum size of leaf nodes
 */
public MinimalisticMemoryKDTree(Relation<O> relation, int leafsize) {
 super(relation);
 this.leafsize = leafsize;
 assert (leafsize >= 1);
 if(LOG.isStatistics()) {
  String prefix = this.getClass().getName();
  this.objaccess = LOG.newCounter(prefix + ".objaccess");
  this.distcalc = LOG.newCounter(prefix + ".distancecalcs");
 }
 else {
  this.objaccess = null;
  this.distcalc = null;
 }
}

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

protected Statistics(String parent) {
 scannedBytes = LOG.isStatistics() ? LOG.newCounter(parent + ".scannedBytes") : null;
 queryTime = LOG.isStatistics() ? LOG.newCounter(parent + ".queryTime") : null;
 issuedQueries = LOG.isStatistics() ? LOG.newCounter(parent + ".issuedQueries") : null;
 refinements = LOG.isStatistics() ? LOG.newCounter(parent + ".refinements") : null;
}

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

/**
 * Constructor.
 *
 * @param relation Relation to index
 * @param leafsize Maximum size of leaf nodes
 */
public SmallMemoryKDTree(Relation<O> relation, int leafsize) {
 super(relation);
 this.leafsize = leafsize;
 assert (leafsize >= 1);
 if(LOG.isStatistics()) {
  String prefix = this.getClass().getName();
  this.objaccess = LOG.newCounter(prefix + ".objaccess");
  this.distcalc = LOG.newCounter(prefix + ".distancecalcs");
 }
 else {
  this.objaccess = null;
  this.distcalc = null;
 }
}

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

/**
 * Constructor.
 *
 * @param relation Relation to index
 * @param leafsize Maximum size of leaf nodes
 */
public SmallMemoryKDTree(Relation<O> relation, int leafsize) {
 super(relation);
 this.leafsize = leafsize;
 assert (leafsize >= 1);
 if(LOG.isStatistics()) {
  String prefix = this.getClass().getName();
  this.objaccess = LOG.newCounter(prefix + ".objaccess");
  this.distcalc = LOG.newCounter(prefix + ".distancecalcs");
 }
 else {
  this.objaccess = null;
  this.distcalc = null;
 }
}

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

/**
 * Constructor.
 *
 * @param relation Relation to index
 * @param leafsize Maximum size of leaf nodes
 */
public MinimalisticMemoryKDTree(Relation<O> relation, int leafsize) {
 super(relation);
 this.leafsize = leafsize;
 assert (leafsize >= 1);
 if(LOG.isStatistics()) {
  String prefix = this.getClass().getName();
  this.objaccess = LOG.newCounter(prefix + ".objaccess");
  this.distcalc = LOG.newCounter(prefix + ".distancecalcs");
 }
 else {
  this.objaccess = null;
  this.distcalc = null;
 }
}

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

/**
 * Constructor.
 *
 * @param relation Relation to index
 * @param leafsize Maximum size of leaf nodes
 */
public MinimalisticMemoryKDTree(Relation<O> relation, int leafsize) {
 super(relation);
 this.leafsize = leafsize;
 assert(leafsize >= 1);
 if(LOG.isStatistics()) {
  String prefix = this.getClass().getName();
  this.objaccess = LOG.newCounter(prefix + ".objaccess");
  this.distcalc = LOG.newCounter(prefix + ".distancecalcs");
 }
 else {
  this.objaccess = null;
  this.distcalc = null;
 }
}

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

/**
 * Constructor.
 *
 * @param relation Relation to index
 * @param leafsize Maximum size of leaf nodes
 */
public SmallMemoryKDTree(Relation<O> relation, int leafsize) {
 super(relation);
 this.leafsize = leafsize;
 assert(leafsize >= 1);
 if(LOG.isStatistics()) {
  String prefix = this.getClass().getName();
  this.objaccess = LOG.newCounter(prefix + ".objaccess");
  this.distcalc = LOG.newCounter(prefix + ".distancecalcs");
 }
 else {
  this.objaccess = null;
  this.distcalc = null;
 }
}

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

/**
 * Constructor.
 */
public AbstractPageFile() {
 super();
 Logging log = getLogger();
 this.readAccess = log.isStatistics() ? log.newCounter(this.getClass().getName() + ".reads") : null;
 this.writeAccess = log.isStatistics() ? log.newCounter(this.getClass().getName() + ".writes") : null;
}

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

/**
 * Constructor.
 */
public AbstractPageFile() {
 super();
 Logging log = getLogger();
 this.readAccess = log.isStatistics() ? log.newCounter(this.getClass().getName() + ".reads") : null;
 this.writeAccess = log.isStatistics() ? log.newCounter(this.getClass().getName() + ".writes") : null;
}

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

/**
 * Constructor.
 */
public AbstractPageFile() {
 super();
 Logging log = getLogger();
 this.readAccess = log.isStatistics() ? log.newCounter(this.getClass().getName() + ".reads") : null;
 this.writeAccess = log.isStatistics() ? log.newCounter(this.getClass().getName() + ".writes") : null;
}

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

/**
 * Constructor.
 * 
 * @param relation Relation indexed
 */
public AbstractRefiningIndex(Relation<O> relation) {
 super(relation);
 Logging log = getLogger();
 refinements = log.isStatistics() ? log.newCounter(this.getClass().getName() + ".refinements") : null;
}

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

/**
 * Constructor.
 * 
 * @param relation Relation to index.
 * @param proj Projection to use.
 * @param view View to use.
 * @param inner Index to wrap.
 * @param norefine Refinement disable flag.
 * @param kmulti Multiplicator for k
 */
public ProjectedIndex(Relation<? extends O> relation, Projection<O, I> proj, Relation<I> view, Index inner, boolean norefine, double kmulti) {
 super();
 this.relation = relation;
 this.view = view;
 this.inner = inner;
 this.proj = proj;
 this.norefine = norefine;
 this.kmulti = kmulti;
 this.refinements = LOG.isStatistics() ? LOG.newCounter(this.getClass().getName() + ".refinements") : null;
}

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

/**
 * Constructor.
 * 
 * @param relation Relation to index.
 * @param proj Projection to use.
 * @param view View to use.
 * @param inner Index to wrap.
 * @param norefine Refinement disable flag.
 * @param kmulti Multiplicator for k
 */
public ProjectedIndex(Relation<O> relation, Projection<O, I> proj, Relation<I> view, Index inner, boolean norefine, double kmulti) {
 super();
 this.relation = relation;
 this.view = view;
 this.inner = inner;
 this.proj = proj;
 this.norefine = norefine;
 this.kmulti = kmulti;
 this.refinements = LOG.isStatistics() ? LOG.newCounter(this.getClass().getName() + ".refinements") : null;
}

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

/**
 * Constructor.
 * 
 * @param relation Relation indexed
 */
public AbstractRefiningIndex(Relation<O> relation) {
 super(relation);
 Logging log = getLogger();
 refinements = log.isStatistics() ? log.newCounter(this.getClass().getName() + ".refinements") : null;
}

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

/**
 * Constructor.
 * 
 * @param relation Relation indexed
 */
public AbstractRefiningIndex(Relation<O> relation) {
 super(relation);
 Logging log = getLogger();
 refinements = log.isStatistics() ? log.newCounter(this.getClass().getName() + ".refinements") : null;
}

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

/**
 * Constructor.
 * 
 * @param relation Relation to index.
 * @param proj Projection to use.
 * @param view View to use.
 * @param inner Index to wrap.
 * @param norefine Refinement disable flag.
 * @param kmulti Multiplicator for k
 */
public ProjectedIndex(Relation<? extends O> relation, Projection<O, I> proj, Relation<I> view, Index inner, boolean norefine, double kmulti) {
 super();
 this.relation = relation;
 this.view = view;
 this.inner = inner;
 this.proj = proj;
 this.norefine = norefine;
 this.kmulti = kmulti;
 this.refinements = LOG.isStatistics() ? LOG.newCounter(this.getClass().getName() + ".refinements") : null;
}

相关文章