Tabnine Logo
XYCurve.addAndSimplify
Code IndexAdd Tabnine to your IDE (free)

How to use
addAndSimplify
method
in
de.lmu.ifi.dbs.elki.math.geometry.XYCurve

Best Java code snippets using de.lmu.ifi.dbs.elki.math.geometry.XYCurve.addAndSimplify (Showing top 7 results out of 315)

origin: de.lmu.ifi.dbs.elki/elki-outlier

private XYCurve computePrecisionResult(int size, SetDBIDs positiveids, DBIDs order) {
 if(order.size() != size) {
  throw new IllegalStateException("Iterable result doesn't match database size - incomplete ordering?");
 }
 int lastk = Math.min(size, maxk);
 XYCurve curve = new PrecisionAtKCurve(lastk);
 int pos = 0;
 DBIDIter i = order.iter();
 for(int k = 1; k <= lastk; k++, i.advance()) {
  if(positiveids.contains(i)) {
   pos++;
  }
  curve.addAndSimplify(k, pos / (double) k);
 }
 return curve;
}
origin: elki-project/elki

private XYCurve computePrecisionResult(int size, SetDBIDs positiveids, DBIDs order) {
 if(order.size() != size) {
  throw new IllegalStateException("Iterable result doesn't match database size - incomplete ordering?");
 }
 int lastk = Math.min(size, maxk);
 XYCurve curve = new PrecisionAtKCurve("k", "Precision", lastk);
 int pos = 0;
 DBIDIter i = order.iter();
 for(int k = 1; k <= lastk; k++, i.advance()) {
  if(positiveids.contains(i)) {
   pos++;
  }
  curve.addAndSimplify(k, pos / (double) k);
 }
 return curve;
}
origin: de.lmu.ifi.dbs.elki/elki

private XYCurve computePrecisionResult(int size, SetDBIDs positiveids, DBIDs order) {
 if(order.size() != size) {
  throw new IllegalStateException("Iterable result doesn't match database size - incomplete ordering?");
 }
 int lastk = Math.min(size, maxk);
 XYCurve curve = new PrecisionAtKCurve("k", "Precision", lastk);
 int pos = 0;
 DBIDIter i = order.iter();
 for(int k = 1; k <= lastk; k++, i.advance()) {
  if(positiveids.contains(i)) {
   pos++;
  }
  curve.addAndSimplify(k, pos / (double) k);
 }
 return curve;
}
origin: de.lmu.ifi.dbs.elki/elki

 curve.addAndSimplify(curreca, curprec);
curve.addAndSimplify(1.0, postot / total);
return curve;
origin: elki-project/elki

 curve.addAndSimplify(negcnt, poscnt);
curve.addAndSimplify(negcnt, poscnt);
curve.rescale(1. / negcnt, 1. / poscnt);
return curve;
origin: de.lmu.ifi.dbs.elki/elki

 curve.addAndSimplify(negcnt, poscnt);
curve.addAndSimplify(negcnt, poscnt);
curve.rescale(1. / negcnt, 1. / poscnt);
return curve;
origin: de.lmu.ifi.dbs.elki/elki-core

 curve.addAndSimplify(negcnt, poscnt);
curve.addAndSimplify(negcnt, poscnt);
curve.rescale(1. / negcnt, 1. / poscnt);
return curve;
de.lmu.ifi.dbs.elki.math.geometryXYCurveaddAndSimplify

Javadoc

Add a coordinate pair, performing curve simplification if possible.

Popular methods of XYCurve

  • add
    Add a coordinate pair, but don't simplify
  • areaUnderCurve
    Compute the area under curve for a curvemonotonously increasing in X. You might need to relate this
  • <init>
    Constructor with size estimate and labels.
  • getLabelx
    Get label of x axis
  • getLabely
    Get label of y axis
  • rescale
    Rescale the graph.
  • getMaxx
    Maximum on x axis.
  • getMaxy
    Maximum on y axis.
  • getMinx
    Minimum on x axis.
  • getMiny
    Minimum on y axis.
  • iterator
    Get an iterator for the curve. Note: this is not a Java style iterator, since the only way to get po
  • size
    Size of curve.
  • iterator,
  • size,
  • getX,
  • getY,
  • writeToText

Popular in Java

  • Running tasks concurrently on multiple threads
  • addToBackStack (FragmentTransaction)
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Menu (java.awt)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top plugins for WebStorm
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