Package systole.domain.signals

Examples of systole.domain.signals.SelectedSegment


        BigDecimal prom;
        while ((minAmount>j)) {
            prom = BigDecimal.ZERO;
            Iterator<SelectedSegment> itSegments = segments.iterator();
            while (itSegments.hasNext()) {
                SelectedSegment selectedSegment = itSegments.next();
                if ((selectedSegment.getSegment().size() > j)) {
                    prom = prom.add(selectedSegment.getSegment().elementAt(j));
                }
            }
            finalSegment.add(prom.divide(new BigDecimal(amountOfSements),MathUtils.CONTEXT));
            j++;
        }
View Full Code Here


    private void doCharts(Segment segment) {
        this.allCharts = new XYChart("Segmentos", "Muestras", "Amplitud (%)");

        Iterator<SelectedSegment> segments = this.parentControl.getSelectionModel().getSelectedSegments().iterator();
        while (segments.hasNext()) {
            SelectedSegment selectedSegment = segments.next();
            this.allCharts.addSeries("Seg-" + (selectedSegment.getNumber() + 1), selectedSegment.getSegment().toDoubleArray(), 1);
        }

        this.finalSegment = new XYChart("Curva Final", "Tiempo (ms)", "Amplitud (%)");
        this.finalSegment.addSeries("Latido", segment.toDoubleArray(), this.currentAnalysis.getSignalFrequency().getFrequency().doubleValue());
    }
View Full Code Here

            while (items.hasNext()) {
                item = items.next();
                if (item.isSelected()) {
                    Segment segment = analysis.getAllSegments().getSegments().elementAt(item.getIndexSegement());
                    if (segment != null) {
                        SelectedSegment selectedSegment = new SelectedSegment(item.getIndexSegement(), segment);
                        this.getSelectedSegments().add(selectedSegment);
                    }
                }
            }
        }
View Full Code Here

            this.allCharts = new XYChart("Segmentos", "Muestras", "Amplitud (%)");

            Iterator<SelectedSegment> segments = this.currentAnalysis.getSelectedSegments().iterator();
            while (segments.hasNext()) {
                SelectedSegment selectedSegment = segments.next();
                this.allCharts.addSeries("Seg-" + (selectedSegment.getNumber() + 1), selectedSegment.getSegment().toDoubleArray(), 1);
                SelectionItem selectItem = this.selectionItems.get(selectedSegment.getNumber());
                if (selectItem != null) {
                    selectItem.setSelected(true);
                }
            }
View Full Code Here

TOP

Related Classes of systole.domain.signals.SelectedSegment

Copyright © 2018 www.massapicom. 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.