Examples of DoubleData


Examples of Framework.DoubleData

        Logger.getLogger("task.part.logmgr").info(aMsg);

        super.fillString(target);

        if (target != null) {
            target.setValue( this.fmt.formatNumeric(new DoubleData(target.getDoubleValue())) );
        }
        else {
            target = new TextData();
        }
View Full Code Here

Examples of com.tagtraum.perf.gcviewer.math.DoubleData

        // but no memory information -> all values zero there
       
        GCModel model = new GCModel();
        model.add(event);
       
        DoubleData initiatingOccupancyFraction = model.getCmsInitiatingOccupancyFraction();
        assertEquals("fraction", 0, initiatingOccupancyFraction.getSum(), 0.1);
    }
View Full Code Here

Examples of com.tagtraum.perf.gcviewer.math.DoubleData

        this.concurrentGCEvents = new ArrayList<ConcurrentGCEvent>();
        this.fullGCEvents = new ArrayList<GCEvent>();
        this.currentNoFullGCEvents = new ArrayList<GCEvent>();
        this.currentPostGCSlope = new RegressionLine();
        this.postFullGCSlope = new RegressionLine();
        this.postGCSlope = new DoubleData();
        this.freedMemoryByGC = new IntData();
        this.freedMemoryByFullGC = new IntData();
        this.postFullGCUsedHeap = new IntData();
        this.postGCUsedMemory = new IntData();
        this.totalPause = new DoubleData();
        this.fullGCPause = new DoubleData();
        this.gcPause = new DoubleData();
        this.vmOperationPause = new DoubleData();
        this.pauseInterval = new DoubleData();
        this.initiatingOccupancyFraction = new DoubleData();
        this.currentRelativePostGCIncrease = new RegressionLine();
        this.relativePostGCIncrease = new DoubleData();
        this.relativePostFullGCIncrease = new RegressionLine();
       
        this.fullGcEventPauses = new TreeMap<String, DoubleData>();
        this.gcEventPauses = new TreeMap<String, DoubleData>();
        this.concurrentGcEventPauses = new TreeMap<String, DoubleData>();
View Full Code Here

Examples of com.tagtraum.perf.gcviewer.math.DoubleData

    public Iterator<GCEvent> getFullGCEvents() {
      return fullGCEvents.iterator();
    }

    private DoubleData getDoubleData(String key, Map<String, DoubleData> eventMap) {
      DoubleData data = eventMap.get(key);
      if (data == null) {
        data = new DoubleData();
        eventMap.put(key, data);
      }
     
      return data;
    }
View Full Code Here

Examples of com.tagtraum.perf.gcviewer.math.DoubleData

       
        if (abstractEvent instanceof ConcurrentGCEvent) {
          ConcurrentGCEvent concEvent = (ConcurrentGCEvent)abstractEvent;
            concurrentGCEvents.add(concEvent);
       
            DoubleData pauses = getDoubleData(concEvent.getExtendedType().getName(), concurrentGcEventPauses);
            pauses.add(concEvent.getPause());
        }
        else if (abstractEvent instanceof GCEvent) {
         
          // collect statistics about all stop the world events
            GCEvent event = (GCEvent) abstractEvent;
           
            updateHeapSizes(event);
           
            updateGcPauseInterval(event);
           
            updatePromotion(event);
           
            if (event.isInitialMark()) {
                updateInitiatingOccupancyFraction(event);
            }
            if (size() > 1 && allEvents.get(allEvents.size() - 2).isConcurrentCollectionEnd()) {
                updatePostConcurrentCycleUsedSizes(event);
            }
           
            freedMemory += event.getPreUsed() - event.getPostUsed();
           
            if (!event.isFull()) {
              // make a difference between stop the world events, which only collect from some generations...
                DoubleData pauses = getDoubleData(event.getTypeAsString(), gcEventPauses);
                pauses.add(event.getPause());
               
                gcEvents.add(event);
                postGCUsedMemory.add(event.getPostUsed());
                freedMemoryByGC.add(event.getPreUsed() - event.getPostUsed());
                currentNoFullGCEvents.add(event);
                currentPostGCSlope.addPoint(event.getTimestamp(), event.getPostUsed());
                currentRelativePostGCIncrease.addPoint(currentRelativePostGCIncrease.getPointCount(), event.getPostUsed());
                gcPause.add(event.getPause());

            }
            else {
              // ... as opposed to all generations
                DoubleData pauses = getDoubleData(event.getTypeAsString(), fullGcEventPauses);
                pauses.add(event.getPause());
               
                fullGCEvents.add(event);
                postFullGCUsedHeap.add(event.getPostUsed());
                int freed = event.getPreUsed() - event.getPostUsed();
                freedMemoryByFullGC.add(freed);
                fullGCPause.add(event.getPause());
                postFullGCSlope.addPoint(event.getTimestamp(), event.getPostUsed());
                relativePostFullGCIncrease.addPoint(relativePostFullGCIncrease.getPointCount(), event.getPostUsed());

                // process no full-gc run data
                if (currentPostGCSlope.hasPoints()) {
                    // make sure we have at least _two_ data points
                    if (currentPostGCSlope.isLine()) {
                        postGCSlope.add(currentPostGCSlope.slope(), currentPostGCSlope.getPointCount());
                        relativePostGCIncrease.add(currentRelativePostGCIncrease.slope(), currentRelativePostGCIncrease.getPointCount());
                    }
                    currentPostGCSlope.reset();
                    currentRelativePostGCIncrease.reset();
                }

            }
           
        }
        else if (abstractEvent instanceof VmOperationEvent) {
            adjustPause((VmOperationEvent) abstractEvent);
            if (abstractEvent.getTimestamp() < 0.000001) {
                setTimeStamp((VmOperationEvent) abstractEvent);
            }
            vmOperationPause.add(abstractEvent.getPause());
            vmOperationEvents.add(abstractEvent);
            DoubleData vmOpPauses = getDoubleData(abstractEvent.getTypeAsString(), vmOperationEventPauses);
            vmOpPauses.add(abstractEvent.getPause());
        }

        if (size() == 1 || (size() > 1 && abstractEvent.getTimestamp() > 0.0)) {
            // timestamp == 0 is only valid, if it is the first event.
            // sometimes, no timestamp is present, because the line is mixed -> don't count these here
View Full Code Here

Examples of edu.cmu.sphinx.frontend.DoubleData

    private DoubleData process(Data input) throws IllegalArgumentException {
        assert input instanceof DoubleData;

        double[] inFeatures;

        DoubleData doubleData = (DoubleData) input;
        assert sampleRate == doubleData.getSampleRate();

        inFeatures = doubleData.getValues();

        // check wether we reached the next insertion point and repeat some parts of the input part if necessary
        double[] extFeatures;
        long firstSampleNumber = doubleData.getFirstSampleNumber() + numInsertedSamples;
        long lastSampleNumber = doubleData.getFirstSampleNumber() + doubleData.getValues().length - 1;

        if (nextInsertionPoint >= doubleData.getFirstSampleNumber() && nextInsertionPoint <= lastSampleNumber) {
            int insertLength = Math.min(r.nextInt((int) maxRepeatedSamples) + 1, inFeatures.length);

            // make sure that after insertion the block-length does not exceed 160 samples because with more SpeechClassifierNT will fail
            assert doubleData.getValues().length + insertLength <= 160 : "block too large for next SpeechClassifier";


            extFeatures = new double[insertLength + inFeatures.length];

            logger.fine("RSR: repeat snippet with length " + insertLength + " at position " + nextInsertionPoint);

            // copy the existing block into the new array and replicate the desired snippet inbetween
            int startIndex = (int) (nextInsertionPoint - doubleData.getFirstSampleNumber());

            System.arraycopy(inFeatures, 0, extFeatures, 0, startIndex);
            System.arraycopy(inFeatures, 0, extFeatures, startIndex, insertLength);
            System.arraycopy(inFeatures, startIndex, extFeatures, startIndex + insertLength, inFeatures.length - startIndex);
            numInsertedSamples += insertLength;
            nextInsertionPoint = computeNextInsertionPoint();
        } else {
            extFeatures = inFeatures;
        }


        DoubleData extendedData = new DoubleData(extFeatures, doubleData.getSampleRate(),
                firstSampleNumber);

        return extendedData;
    }
View Full Code Here

Examples of net.helipilot50.stocktrade.framework.DoubleData

              cachedRowSet.updateString(pColOrdinal, textValue.toString());
            } else if (pValue instanceof IntegerData) {
              IntegerData integerValue = (IntegerData) pValue;
              cachedRowSet.updateInt(pColOrdinal, integerValue.getIntegerValue());
            } else if (pValue instanceof DoubleData) {
              DoubleData doubleValue = (DoubleData) pValue;
              cachedRowSet.updateDouble(pColOrdinal, doubleValue.getDoubleValue());
            } else if (pValue instanceof DecimalData) {
              DecimalData value = (DecimalData) pValue;
              cachedRowSet.updateBigDecimal(pColOrdinal, value.getBigDecimal());
            } else if (pValue instanceof BooleanData) {
              BooleanData value = (BooleanData) pValue;
View Full Code Here

Examples of net.sourceforge.processdash.data.DoubleData

        // all times to their correct values
        assertTimes(expectedTimes);

        // add a bogus value to the data repository
        StringData stringData = new StringData("\"foo");
        data.putValue("/Project/Time", new DoubleData(666, false));
        data.putValue("/Non Project/Time", stringData);
        // but we don't want it to show up.
        expectedTimes.put("/Project", new Integer(0));
        boolean timesMatch = false;
        try {
View Full Code Here

Examples of net.sourceforge.processdash.data.DoubleData

                    ((String) params.get(INPUT_VAL));

                ProcessUtil processUtil = new ProcessUtil(data, prefix);
                String probeInputElem =
                    processUtil.getProcessString(ProbeData.PROBE_INPUT_METRIC);
                putValue(probeInputElem, new DoubleData(inputVal));

                return (inputVal > 0);
            } catch (Exception e) {
                return false;
            }
View Full Code Here

Examples of net.sourceforge.processdash.data.DoubleData

                    estimate.setBackground(new Color(255, 200, 200));
                    estimate.setToolTipText(resources
                            .getString("Edit_Dialog.Invalid_Time"));
                    continue;
                }
                newEstimate = new DoubleData(l, true);
            }
            dashCtx.getData().userPutValue(estTimeDataName, newEstimate);
            EST_TIME_JANITOR.cleanup(dashCtx);
            return;
        }
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.