Examples of addTo()


Examples of org.apache.mahout.math.Vector.addTo()

    }
    Vector x2 = x.times(x);
    if (s2 == null) {
      s2 = x2;
    } else {
      x2.addTo(s2);
    }
  }

  @Override
  public void compute() {
View Full Code Here

Examples of org.apache.mahout.math.Vector.addTo()

        return;
      }
      Vector accumulator = new RandomAccessSparseVector(it.next().get());
      while (it.hasNext()) {
        Vector row = it.next().get();
        row.addTo(accumulator);
      }
      out.collect(rowNum, new VectorWritable(new SequentialAccessSparseVector(accumulator)));
    }
  }
View Full Code Here

Examples of org.apache.mahout.math.Vector.addTo()

      featureSum = new RandomAccessSparseVector(vector.size(), vector.getNumNondefaultElements());
      labelSum = new RandomAccessSparseVector(labelMap.size())
    }
   
    int label = key.get();
    vector.addTo(featureSum);
    labelSum.set(label, labelSum.get(label) + vector.zSum());
  }
 
  @Override
  protected void setup(Context context) throws IOException, InterruptedException {
View Full Code Here

Examples of org.apache.mahout.math.Vector.addTo()

        int count = 0;
        Vector center = new DenseVector(2);
        for (int vix : canopy.getBoundPoints().toList()) {
          Vector v = SAMPLE_DATA.get(vix).get();
          count++;
          v.addTo(center);
          DisplayClustering.plotRectangle(g2, v, dv);
        }
        center = center.divide(count);
        DisplayClustering.plotEllipse(g2, center, dv1);
        DisplayClustering.plotEllipse(g2, center, dv2);
View Full Code Here

Examples of org.apache.ode.utils.xsd.Duration.addTo()

        Date dueDate = null;
        if (wait.hasFor()) {
            Calendar cal = Calendar.getInstance();
            Duration duration = getBpelRuntimeContext().getExpLangRuntime().evaluateAsDuration(wait.forExpression, evalCtx);
            duration.addTo(cal);
            dueDate = cal.getTime();
        } else if (wait.hasUntil()) {
            Calendar cal = getBpelRuntimeContext().getExpLangRuntime().evaluateAsDate(wait.untilExpression, evalCtx);
            dueDate = cal.getTime();
        } else {
View Full Code Here

Examples of org.apache.turbine.util.mail.SimpleEmail.addTo()

            // Process the template.
            String body = TurbineWebMacro.handleRequest(context,template);

            SimpleEmail se = new SimpleEmail();
            se.setFrom(fromEmail, fromName);
            se.addTo(toEmail, toName);
            se.setSubject(subject);
            se.setMsg(body);
            se.send();
        }
        catch (Exception e)
View Full Code Here

Examples of org.apache.turbine.util.mail.SimpleEmail.addTo()

                                         wordWrap);
        }

        SimpleEmail se = new SimpleEmail();
        se.setFrom(fromEmail, fromName);
        se.addTo(toEmail, toName);
        se.setSubject(subject);
        se.setMsg(body);
        se.send();
    }
View Full Code Here

Examples of org.apache.turbine.util.velocity.VelocityHtmlEmail.addTo()

//      emailContext.put("emailbody", emailEntry.getBody());

      VelocityHtmlEmail ve = new VelocityHtmlEmail(data);
//      ve.setMailServer(TurbineResources.getString("mail.server"));
      ve.setCharset("UTF-8");
      ve.addTo( sEmailAddress, "");
      ve.setFrom(TurbineResources.getString("mail.smtp.from"), TurbineResources.getString("mail.smtp.from.name"));
      ve.setSubject(emailEntry.getSubject());
//      ve.setTextMsg(emailEntry.getBody());
      context.put("emailbody", emailEntry.getBody());
      ve.setTextTemplate("screens/SendEmail.vm");
View Full Code Here

Examples of org.codehaus.plexus.mailsender.MailMessage.addTo()

            final Iterator it = getToAddresses().iterator();
            while ( it.hasNext() )
            {
                email = it.next().toString();
                getLog().info( "Sending mail to " + email + "..." );
                mailMsg.addTo( email, "" );
            }

            if(getCcAddresses() != null)
            {
                final Iterator it2 = getCcAddresses().iterator();
View Full Code Here

Examples of org.concordion.api.extension.ConcordionExtension.addTo()

        String message = String.format("Extension class '%s' must implement '%s' or '%s'", className,
            ConcordionExtension.class.getName(), ConcordionExtensionFactory.class.getName());
        throw new RuntimeException(message);
      }
    }
    extension.addTo(this);
  }

  private File getBaseOutputDir() {
    String outputPath = System.getProperty(PROPERTY_OUTPUT_DIR);
    if (outputPath == null) {
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.