Examples of SparseFloatVector


Examples of de.lmu.ifi.dbs.elki.data.SparseFloatVector

          labels = new LabelList(1);
        }
        labels.add(entries.get(i));
      }
    }
    curvec = new SparseFloatVector(values, maxdim);
    curlbl = labels;
  }
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.data.SparseFloatVector

    curlbl = labels;
  }

  @Override
  protected VectorFieldTypeInformation<SparseFloatVector> getTypeInformation(int dimensionality) {
    return new VectorFieldTypeInformation<SparseFloatVector>(SparseFloatVector.class, dimensionality, new SparseFloatVector(SparseFloatVector.EMPTYMAP, dimensionality));
  }
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.data.SparseFloatVector

            break;
          }
          double v = (Double) iter.value();
          f.put(i - s + 1, (float) v);
        }
        data[out] = new SparseFloatVector(f, dimsize[out]);
      }
      else if(elkitypes[out] == TypeUtil.LABELLIST) {
        // Build a label list out of successive labels
        LabelList ll = new LabelList(1);
        for(TIntObjectIterator<Object> iter = map.iterator(); iter.hasNext();) {
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.data.SparseFloatVector

        if(!sparse) {
          VectorFieldTypeInformation<DoubleVector> type = new VectorFieldTypeInformation<DoubleVector>(DoubleVector.class, DoubleVector.STATIC, dimsize[out], labels, new DoubleVector(new double[dimsize[out]]));
          bundle.appendColumn(type, new ArrayList<DoubleVector>());
        }
        else {
          VectorFieldTypeInformation<SparseFloatVector> type = new VectorFieldTypeInformation<SparseFloatVector>(SparseFloatVector.class, dimsize[out], labels, new SparseFloatVector(SparseFloatVector.EMPTYMAP, dimsize[out]));
          bundle.appendColumn(type, new ArrayList<SparseFloatVector>());
        }
      }
      else if(etyp[out] == TypeUtil.LABELLIST) {
        String label = names.get(out);
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.