Package hep.aida.bin

Examples of hep.aida.bin.DynamicBin1D.clear()


  DynamicBin1D bin = new DynamicBin1D();
  double[] elements = new double[matrix.rows()];
  cern.colt.list.DoubleArrayList values = new cern.colt.list.DoubleArrayList(elements);
  for (int column=matrix.columns(); --column >= 0; ) {
    matrix.viewColumn(column).toArray(elements); // copy column into values
    bin.clear();
    bin.addAllOf(values);
    for (int i=aggr.length; --i >= 0; ) {
      result.set(i, column, aggr[i].apply(bin));
    }
  }
View Full Code Here


  DynamicBin1D bin = new DynamicBin1D();
  double[] elements = new double[matrix.rows()];
  cern.colt.list.DoubleArrayList values = new cern.colt.list.DoubleArrayList(elements);
  for (int column=matrix.columns(); --column >= 0; ) {
    matrix.viewColumn(column).toArray(elements); // copy column into values
    bin.clear();
    bin.addAllOf(values);
    for (int i=aggr.length; --i >= 0; ) {
      result.set(i, column, aggr[i].apply(bin));
    }
  }
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.