Tabnine Logo
PreDeConNeighborPredicate.preprocess
Code IndexAdd Tabnine to your IDE (free)

How to use
preprocess
method
in
de.lmu.ifi.dbs.elki.algorithm.clustering.gdbscan.PreDeConNeighborPredicate

Best Java code snippets using de.lmu.ifi.dbs.elki.algorithm.clustering.gdbscan.PreDeConNeighborPredicate.preprocess (Showing top 3 results out of 315)

origin: elki-project/elki

@SuppressWarnings("unchecked")
@Override
public Instance instantiate(Database database) {
 DistanceQuery<V> dq = QueryUtil.getDistanceQuery(database, distFunc);
 Relation<V> relation = (Relation<V>) dq.getRelation();
 RangeQuery<V> rq = database.getRangeQuery(dq);
 mvSize.reset();
 mvVar.reset();
 DataStore<PreDeConModel> storage = preprocess(PreDeConModel.class, relation, rq);
 if(LOG.isVerbose()) {
  LOG.verbose("Average neighborhood size: " + mvSize.toString());
  LOG.verbose("Average variance size: " + mvVar.toString());
  final int dim = RelationUtil.dimensionality(relation);
  if(mvSize.getMean() < 5 * dim) {
   LOG.verbose("The epsilon parameter may be chosen too small.");
  }
  else if(mvSize.getMean() > .5 * relation.size()) {
   LOG.verbose("The epsilon parameter may be chosen too large.");
  }
  else {
   LOG.verbose("As a first guess, you can try minPts < " + ((int) mvSize.getMean() / dim) //
     + " and delta > " + mvVar.getMean() + //
     ", but you will need to experiment with these parameters and epsilon.");
  }
 }
 return new Instance(dq.getRelation().getDBIDs(), storage);
}
origin: de.lmu.ifi.dbs.elki/elki

@SuppressWarnings("unchecked")
@Override
public <T> NeighborPredicate.Instance<T> instantiate(Database database, SimpleTypeInformation<?> type) {
 DistanceQuery<V> dq = QueryUtil.getDistanceQuery(database, distFunc);
 Relation<V> relation = (Relation<V>) dq.getRelation();
 RangeQuery<V> rq = database.getRangeQuery(dq);
 mvSize.reset();
 mvVar.reset();
 DataStore<PreDeConModel> storage = preprocess(PreDeConModel.class, relation, rq);
 if(LOG.isVerbose()) {
  LOG.verbose("Average neighborhood size: " + mvSize.toString());
  LOG.verbose("Average variance size: " + mvVar.toString());
  final int dim = RelationUtil.dimensionality(relation);
  if(mvSize.getMean() < 5 * dim) {
   LOG.verbose("The epsilon parameter may be chosen too small.");
  }
  else if(mvSize.getMean() > .5 * relation.size()) {
   LOG.verbose("The epsilon parameter may be chosen too large.");
  }
  else {
   LOG.verbose("As a first guess, you can try minPts < " + ((int) mvSize.getMean() / dim) //
     + " and delta > " + mvVar.getMean() + //
     ", but you will need to experiment with these parameters and epsilon.");
  }
 }
 return (NeighborPredicate.Instance<T>) new Instance(dq.getRelation().getDBIDs(), storage);
}
origin: de.lmu.ifi.dbs.elki/elki-clustering

@SuppressWarnings("unchecked")
@Override
public Instance instantiate(Database database) {
 DistanceQuery<V> dq = QueryUtil.getDistanceQuery(database, distFunc);
 Relation<V> relation = (Relation<V>) dq.getRelation();
 RangeQuery<V> rq = database.getRangeQuery(dq);
 mvSize.reset();
 mvVar.reset();
 DataStore<PreDeConModel> storage = preprocess(PreDeConModel.class, relation, rq);
 if(LOG.isVerbose()) {
  LOG.verbose("Average neighborhood size: " + mvSize.toString());
  LOG.verbose("Average variance size: " + mvVar.toString());
  final int dim = RelationUtil.dimensionality(relation);
  if(mvSize.getMean() < 5 * dim) {
   LOG.verbose("The epsilon parameter may be chosen too small.");
  }
  else if(mvSize.getMean() > .5 * relation.size()) {
   LOG.verbose("The epsilon parameter may be chosen too large.");
  }
  else {
   LOG.verbose("As a first guess, you can try minPts < " + ((int) mvSize.getMean() / dim) //
     + " and delta > " + mvVar.getMean() + //
     ", but you will need to experiment with these parameters and epsilon.");
  }
 }
 return new Instance(dq.getRelation().getDBIDs(), storage);
}
de.lmu.ifi.dbs.elki.algorithm.clustering.gdbscanPreDeConNeighborPredicatepreprocess

Popular methods of PreDeConNeighborPredicate

  • <init>
    Constructor.

Popular in Java

  • Reactive rest calls using spring rest template
  • setRequestProperty (URLConnection)
  • startActivity (Activity)
  • compareTo (BigDecimal)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top PhpStorm plugins
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