Examples of iterateClass()


Examples of de.lmu.ifi.dbs.elki.visualization.style.ClassStylingPolicy.iterateClass()

    if(sp instanceof ClassStylingPolicy) {
      // FIXME: doesn't use sampling yet.
      ClassStylingPolicy csp = (ClassStylingPolicy) sp;
      for(int c = csp.getMinStyle(); c < csp.getMaxStyle(); c++) {
        String key = DATALINE + "_" + c;
        for(Iterator<DBID> iter = csp.iterateClass(c); iter.hasNext();) {
          DBID id = iter.next();
          SVGPath path = new SVGPath();
          double[] yPos = proj.fastProjectDataToRenderSpace(relation.get(id));
          for(int i = 0; i < yPos.length; i++) {
            path.drawTo(getVisibleAxisX(i), yPos[i]);
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.visualization.style.ClassStylingPolicy.iterateClass()

    final StylingPolicy spol = style.getStylingPolicy();

    if(spol instanceof ClassStylingPolicy) {
      ClassStylingPolicy cspol = (ClassStylingPolicy) spol;
      for(int cnum = cspol.getMinStyle(); cnum < cspol.getMaxStyle(); cnum++) {
        for(Iterator<DBID> iter = cspol.iterateClass(cnum); iter.hasNext();) {
          DBID cur = iter.next();
          try {
            final NumberVector<?, ?> vec = rel.get(cur);
            double[] v = proj.fastProjectDataToRenderSpace(vec);
            ml.useMarker(svgp, layer, v[0], v[1], cnum, marker_size);
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.visualization.style.ClassStylingPolicy.iterateClass()

    if(cspol != null) {
      for(int snum = 0; snum < numc; snum++) {
        double[] inc = new double[cols];
        inc[0] = frac;
        inc[snum + 1] = frac;
        for(Iterator<DBID> iter = cspol.iterateClass(snum + off); iter.hasNext();) {
          DBID id = iter.next();
          try {
            double pos = proj.fastProjectDataToRenderSpace(relation.get(id)) / Projection.SCALE;
            histogram.aggregate(pos, inc);
          }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.