Examples of normalize()


Examples of org.elasticsearch.common.geo.GeoDistance.normalize()

            if (vFrom instanceof Number) {
                from = unit.toMeters(((Number) vFrom).doubleValue());
            } else {
                from = DistanceUnit.parse((String) vFrom, unit, DistanceUnit.DEFAULT);
            }
            from = geoDistance.normalize(from, DistanceUnit.DEFAULT);
        }
        if (vTo != null) {
            if (vTo instanceof Number) {
                to = unit.toMeters(((Number) vTo).doubleValue());
            } else {
View Full Code Here

Examples of org.encog.app.analyst.csv.normalize.AnalystNormalizeCSV.normalize()

    final boolean headers = getScript().expectInputHeaders(sourceID);
    norm.analyze(sourceFile, headers, inputFormat, getAnalyst());
    norm.setOutputFormat(outputFormat);
    norm.setProduceOutputHeaders(true);
    norm.normalize(targetFile);
    getAnalyst().setCurrentQuantTask(null);
    return norm.shouldStop();
  }

  /**
 
View Full Code Here

Examples of org.evolizer.daforjava.polymetricviews.model.INormalizer.normalize()

//                if(!metricIdentifier.equalsIgnoreCase(PolymetricViewControllerView.METRIC_UNIFORM)) {
                    if (dataCollector.containsEntry(entity, metricIdentifier)) {
                        float value = dataCollector.getValue(entity, metricIdentifier);
                        INormalizer normalizer = updater.getNormalizer();

                        float normalizedVal = normalizer.normalize(value, dataCollector.getMaxValue(metricIdentifier, entity.getClass()));
                        if (!(entity instanceof AbstractFamixVariable)) {
                            updater.updateNodeRealizer(realizer, normalizedVal);
                        }
                    } else {
//                        sLogger.error("No metric data found for metric: " + updater.getAttributeToRepresent());
View Full Code Here

Examples of org.fcrepo.utilities.NormalizedURI.normalize()

        }
        try {
            // Normalize the IRI to resolve percent-encoding and
            // backtracking (e.g. "../")
            NormalizedURI nUri = new NormalizedURI(m_tempDir.toURI().toString() + contentSrc.toString());
            nUri.normalize();

            File f = new File(nUri.toURI());
            if (f.getParentFile().equals(m_tempDir)) {
                return f;
            } else {
View Full Code Here

Examples of org.fnlp.ml.types.sv.SparseVector.normalize()

  private static final long serialVersionUID = -4740915822925015609L;

  @Override
  public void addThruPipe(Instance instance) {
    SparseVector data = (SparseVector) instance.getData();
    data.normalize();
  }

}
View Full Code Here

Examples of org.geotools.geometry.iso.topograph2D.Depth.normalize()

      /**
       * Only check edges for which there were duplicates, since these are
       * the only ones which might be the result of dimensional collapses.
       */
      if (!depth.isNull()) {
        depth.normalize();
        for (int i = 0; i < 2; i++) {
          if (!lbl.isNull(i) && lbl.isArea() && !depth.isNull(i)) {
            /**
             * if the depths are equal, this edge is the result of
             * the dimensional collapse of two or more edges. It has
View Full Code Here

Examples of org.gephi.lib.gleem.linalg.Vec2f.normalize()

        float x1 = nodeFrom.x();
        float y1 = nodeFrom.y();

        //Edge vector
        Vec2f edgeVector = new Vec2f(x2 - x1, y2 - y1);
        edgeVector.normalize();

        //Get collision distance between nodeTo and arrow point
        double angle = Math.atan2(y2 - y1, x2 - x1);
        if (nodeTo.getModel() == null) {
            return;
View Full Code Here

Examples of org.gephi.lib.gleem.linalg.Vec3f.normalize()

        //Transform in 3d coordinates
        mouseX /= -graphDrawable.draggingMarker[0];
        mouseY /= -graphDrawable.draggingMarker[1];

        //Set stepVector for zooming, direction of camera and norm of step
        cameraVector.normalize();
        Vec3f stepVec = cameraVector.times(step);

        cameraLocation[0] += stepVec.x();
        cameraLocation[1] += stepVec.y();
        cameraLocation[2] += stepVec.z();
View Full Code Here

Examples of org.gephi.ranking.api.Ranking.normalize()

            ((AbstractRanking) ranking).setGraph(graph);
            for (Node node : graph.getNodes().toArray()) {
                Object rank = ranking.getValue(node);
                Object result = null;
                if (rank != null) {
                    float normalizedValue = ranking.normalize(rank);
                    if (transformer.isInBounds(normalizedValue)) {
                        result = transformer.transform(node, normalizedValue);
                    }
                }
                rankingResult.addResult(node, rank, result);
View Full Code Here

Examples of org.glassfish.comms.api.telurl.PhoneContextHandler.normalize()

                break;
            }
        }

        String normalizedNumber = (handler != null)
            ? handler.normalize(localNumber, phoneContext) : null;

        if ((normalizedNumber != null) && (normalizedNumber.charAt(0) != '+')) {
            // Be nice and make it correct :-)
            normalizedNumber = "+" + normalizedNumber;
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.