Package mikera.vectorz

Examples of mikera.vectorz.Vector.fill()


      super.transform(source, dest);
    } else if ((source instanceof Vector )) {
      transform ((Vector)source, (Vector)dest);
    } else {
      Vector t=(Vector)dest;
      t.fill(0.0);
      double[] data=t.getArray();
      for (int i=minBand; i<=maxBand; i++) {
        AVector b=getBand(i);
        b.addProductToArray(1.0, 0, source, Math.max(i, 0), data, Math.max(-i, 0), bandLength(i));
      }
View Full Code Here


 
  @Override
  public void transform(Vector source, Vector dest) {
    // fast transform is possible!
    Vector t=dest;
    t.fill(0.0);
    double[] data=dest.getArray();
    for (int i=minBand; i<=maxBand; i++) {
      AVector b=getBand(i);
      b.addProductToArray(1.0, 0, source, Math.max(i, 0), data, Math.max(-i, 0), bandLength(i));
    }   
View Full Code Here

            logger.debug("Training feature {}", f);
            StopWatch timer = new StopWatch();
            timer.start();

            uvec.fill(initialValue);
            ivec.fill(initialValue);

            FeatureInfo.Builder fib = new FeatureInfo.Builder(f);
            trainFeature(f, estimates, uvec, ivec, fib);
            summarizeFeature(uvec, ivec, fib);
            featureInfo.add(fib.build());
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.