Examples of copy()


Examples of util.AddressUtility.copy()

        throws IllegalArgumentException {
        Address newAddr = getAddressFromName(name);
        if (newAddr == null)
            return false;
        AddressUtility addrUtil = new AddressUtility(newAddr);
        addrUtil.copy(addr);
        return true;
    }

    public int addNumbers(int[] nums) {
        int result = 0;
View Full Code Here

Examples of vazkii.botania.common.core.helper.Vector3.copy()

      public void calcEndDiffs() {
        if(prev != null) {
          Vector3 prevdiffnorm = prev.diff.copy().normalize();
          Vector3 thisdiffnorm = diff.copy().normalize();

          prevdiff = thisdiffnorm.copy().add(prevdiffnorm).normalize();
          sinprev = (float) Math.sin(thisdiffnorm.angle(prevdiffnorm.multiply(-1)) / 2);
        } else {
          prevdiff = diff.copy().normalize();
          sinprev = 1;
        }
View Full Code Here

Examples of weka.core.Attribute.copy()

    atts = new ArrayList<Attribute>();
    for (i = 0; i < inputFormat.numAttributes(); i++) {
      att = inputFormat.attribute(i);
      if (m_AttributeIndices.isInRange(i)) {
  if (m_ReplaceAll)
    atts.add(att.copy(att.name().replaceAll(m_Find, m_Replace)));
  else
    atts.add(att.copy(att.name().replaceFirst(m_Find, m_Replace)));
      }
      else {
  atts.add((Attribute) att.copy());
View Full Code Here

Examples of weka.core.Instance.copy()

        Entry<Integer, Double> tempEntry;
        Instance iExample;
        int i = 0;
        Instance originalCopy = getNewInstance(numAtts);
        for (LinkedHashMap<Integer, Double> currentSample : trainingSamples) {
            iExample = (Instance) originalCopy.copy();
            iExample.setDataset(trainingSet);
            currentIt = currentSample.entrySet().iterator();
            while (currentIt.hasNext()) {
                tempEntry = currentIt.next();
                iExample.setValue(tempEntry.getKey(), tempEntry.getValue());
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.