Examples of toDoubleArray()


Examples of it.unimi.dsi.fastutil.doubles.DoubleLinkedOpenHashSet.toDoubleArray()

    }
    final int truncatedSize = truncated.size();
    if (truncatedSize == 0) {
      return new double[] {startTime, endTime };
    }
    final double[] truncatedArray = truncated.toDoubleArray();
    if (!sorted) {
      Arrays.sort(truncatedArray);
    }
    if (CompareUtils.closeEquals(truncatedArray[0], startTime, tolerance)) {
      if (CompareUtils.closeEquals(truncatedArray[truncatedSize - 1], endTime, tolerance)) {
View Full Code Here

Examples of it.unimi.dsi.fastutil.doubles.DoubleList.toDoubleArray()

        } else {
          s_logger.error("Value was null when getting required input data " + factor.getExposureExternalId());
        }
      }
    }
    final StringLabelledMatrix1D labelledMatrix = new StringLabelledMatrix1D(indices.toArray(new String[] {}), labels.toArray(), values.toDoubleArray());
    final ValueSpecification valueSpecification = new ValueSpecification(CREDIT_SENSITIVITIES_REQUIREMENT, target.toSpecification(), createCurrencyValueProperties(target).get());
    return Collections.singleton(new ComputedValue(valueSpecification, labelledMatrix));
  }

  private List<FactorExposureData> decodeSensitivities(final SecuritySource secSource, final RawSecurity rawSecurity) {
View Full Code Here

Examples of mikera.matrixx.Matrix.toDoubleArray()

//        found.print();
//        expected.print();

//        assertTrue(expected.equals(found));
        assertArrayEquals(expected.toDoubleArray(), found.toDoubleArray(), 1e-6);
    }
   
    /**
     * Extracts the rank of a matrix using a preexisting decomposition.
     *
 
View Full Code Here

Examples of org.drools.planner.core.score.Score.toDoubleArray()

        if (moveScore.compareTo(lastStepScore) >= 0) {
            return 1.0;
        }
        Score scoreDifference = lastStepScore.subtract(moveScore);
        double acceptChance = 1.0;
        double[] scoreDifferenceParts = scoreDifference.toDoubleArray();
        for (int i = 0; i < partsLength; i++) {
            double scoreDifferencePart = scoreDifferenceParts[i];
            double temperaturePart = temperatureParts[i];
            double acceptChancePart;
            if (scoreDifferencePart <= 0.0) {
View Full Code Here

Examples of org.drools.planner.core.score.Score.toDoubleArray()

        if (moveScore.compareTo(lastStepScore) >= 0) {
            return true;
        }
        Score scoreDifference = lastStepScore.subtract(moveScore);
        double acceptChance = 1.0;
        double[] scoreDifferenceParts = scoreDifference.toDoubleArray();
        for (int i = 0; i < partsLength; i++) {
            double scoreDifferencePart = scoreDifferenceParts[i];
            double temperaturePart = temperatureParts[i];
            double acceptChancePart;
            if (scoreDifferencePart <= 0.0) {
View Full Code Here

Examples of org.drools.planner.core.score.Score.toDoubleArray()

        if (moveScore.compareTo(lastStepScore) >= 0) {
            return 1.0;
        }
        Score scoreDifference = lastStepScore.subtract(moveScore);
        double acceptChance = 1.0;
        double[] scoreDifferenceParts = scoreDifference.toDoubleArray();
        for (int i = 0; i < partsLength; i++) {
            double scoreDifferencePart = scoreDifferenceParts[i];
            double temperaturePart = temperatureParts[i];
            double acceptChancePart;
            if (scoreDifferencePart <= 0.0) {
View Full Code Here

Examples of systole.domain.signals.Segment.toDoubleArray()

        if (this.getRawSignal() != null) {
            this.preview.getjPnlCenter().removeAll();
            this.preview.getjPnlCenter().setLayout(new BorderLayout());
            Segment segment = (this.getRawSignal().isInverted() ? this.getRawSignal().getSegment().invert() : this.getRawSignal().getSegment());
            XYChart ploter = new XYChart("Tren de pulsos", "Muestras", "Amplitud");
            ploter.addSeries("pulsos", segment.toDoubleArray(), 1);
            ploter.setShowLegend(false);
            ploter.setShowTitle(false);
            this.chart = ploter.plot();
            this.preview.getjPnlCenter().add(this.chart, BorderLayout.CENTER);
        } else {
View Full Code Here

Examples of systole.domain.signals.Segment.toDoubleArray()

                currentSegment = it.next();
                //currentPos = this.controller.getAnalysis().getAllSegments().getSegments().indexOf(currentSegment);
                segment = this.controller.getAnalysis().getAllSegments().getSegments().elementAt(currentSegment.getSegmentNumber());
                name = "Segmento: " + currentSegment.getSegmentNumber();
                chart = new XYChart(name);
                chart.addSeries(name, segment.toDoubleArray(), 1);
                chart.setShowLegend(false);
                chart.setShowTitle(false);
                pnl = chart.plot();
                pnl.setMouseZoomable(false);
                pnl.setPopupMenu(null);
View Full Code Here

Examples of systole.domain.signals.Segment.toDoubleArray()

            ChartPanel pnl;
            Segment currentSegment = this.analysisControl.getAnalysis().getAllSegments().getSegments().elementAt(
                    item);
            name = "Segmento: " + (item);
            chart = new XYChart(name);
            chart.addSeries(name, currentSegment.toDoubleArray(), 1);
            chart.setShowLegend(false);
            chart.setShowTitle(false);
            pnl = chart.plot();
            pnl.setMouseZoomable(false);
            pnl.setPopupMenu(null);
View Full Code Here

Examples of systole.domain.signals.Segment.toDoubleArray()

        //Llamo a refiltrar - estos debieran ser parametros de esta clase y no de metodo
        Segment refiltered = FilterProcessor.filterPulseWave(this.logic.getAnalysis().getRawSignal().getSegment(), this.setupSettings());

        XYChart previewChart = new XYChart("Señal Filtrada - Vista Previa","Muestras","Amplitud(%)");
        previewChart.setShowLegend(false);
        previewChart.addSeries("", refiltered.toDoubleArray(), 1);

        this.jPnlFilteredSignal.removeAll();
        this.jPnlFilteredSignal.add(previewChart.plot());
        this.jPnlFilteredSignal.revalidate();
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.