Examples of transform()


Examples of org.apache.commons.beanutils.BeanToPropertyValueTransformer.transform()

        HashMap<Object, Integer> countMap = new HashMap<Object, Integer>();
        HashMap<Object, Object> valueDisplayMap = new HashMap<Object, Object>();
        for (Product product : products) {
            Object value = valueTransformer.transform(product);
            Object display = displayTransformer.transform(product);
            valueDisplayMap.put(value, display);
            Integer integer = countMap.get(value);
            if (integer == null) {
                countMap.put(value, new Integer(1));
            } else {

Examples of org.apache.commons.collections.Transformer.transform()

        }
        catch ( NoSuchMethodException e ) {
            // try using the transformers
            Transformer transformer = getTypeTransformer( newType );
            if ( transformer != null ) {
                return transformer.transform( value );
            }
            return value;
        }
    }

Examples of org.apache.commons.math3.transform.FastFourierTransformer.transform()

           sig = paddSig;
       }
        Complex []  result;
       
        FastFourierTransformer fftj = new FastFourierTransformer(DftNormalization.STANDARD);
        result =   fftj.transform(sig, TransformType.FORWARD);
       
        return result;
        }           
       
 

Examples of org.apache.cxf.tools.java2wsdl.processor.internal.jaxws.FaultBean.transform()

        Collection<JavaClass> faultBeanClasses = new HashSet<JavaClass>();
        String defaultPackage = seiPackageName + ".jaxws";
        FaultBean bean = new FaultBean();
        for (Class<?> clz : exceptionClasses) {
            if (!bean.faultBeanExists(clz)) {
                faultBeanClasses.add(bean.transform(clz, defaultPackage));
            }
        }

        return faultBeanClasses;
    }

Examples of org.apache.excalibur.xml.xslt.XSLTProcessor.transform()

            XSLTProcessor transformer
                    = (XSLTProcessor) serviceManager.lookup(XSLTProcessor.ROLE);

            try {
                transformer.transform(this, stylesheet, params, result);
            } finally {
                serviceManager.release(transformer);
            }

            return new XScriptObjectResult(xscriptManager, writer.toString());

Examples of org.apache.fop.area.CTM.transform()

     * @return transformed Point
     */
    public Point transformPoint(Point p, CTM ctm) {
        Rectangle2D r = new Rectangle2D.Double(p.x, p.y, 0, 0);
        CTM nctm = refineCTM(ctm);
        r = nctm.transform(r);
        return new Point((int) r.getX(), (int) r.getY());
    }

    /**
     * Transforms point (x, y) using <code>resultCTM</code>.

Examples of org.apache.hadoop.hbase.filter.Filter.transform()

        case INCLUDE:
        case INCLUDE_AND_SEEK_NEXT_ROW:
        case INCLUDE_AND_SEEK_NEXT_COL:

          Filter f = matcher.getFilter();
          results.add(f == null ? kv : f.transform(kv));

          if (qcode == ScanQueryMatcher.MatchCode.INCLUDE_AND_SEEK_NEXT_ROW) {
            if (!matcher.moreRowsMayExistAfter(kv)) {
              outResult.addAll(results);
              return false;

Examples of org.apache.hadoop.hbase.rest.transform.Transform.transform()

   */
  byte[] transform(byte[] family, byte[] qualifier, byte[] value,
      Transform.Direction direction) throws IOException {
    Transform t = getTransform(table, family, qualifier);
    if (t != null) {
      return t.transform(value, direction);
    }
    return value;
  }

  @Path("exists")

Examples of org.apache.hama.ml.util.DefaultFeatureTransformer.transform()

    // calculate the error on test instance
    for (double[] testInstance : testInstances) {
      DoubleVector instance = new DenseDoubleVector(testInstance);
      double expected = instance.get(instance.getDimension() - 1);
      instance = instance.slice(instance.getDimension() - 1);
      instance = featureTransformer.transform(instance);
      double actual = ann.getOutput(instance).get(0);
      if (actual < 0.5 && expected >= 0.5 || actual >= 0.5 && expected < 0.5) {
        ++errorRate;
      }
    }

Examples of org.apache.hama.ml.util.FeatureTransformer.transform()

    // calculate the error on test instance
    for (double[] testInstance : testInstances) {
      DoubleVector instance = new DenseDoubleVector(testInstance);
      double expected = instance.get(instance.getDimension() - 1);
      instance = instance.slice(instance.getDimension() - 1);
      instance = featureTransformer.transform(instance);
      double actual = ann.getOutput(instance).get(0);
      if (actual < 0.5 && expected >= 0.5 || actual >= 0.5 && expected < 0.5) {
        ++errorRate;
      }
    }
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.