Package systole.domain.signals

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


        int initOfActalSegment = this.obtainTheStartOfSegment(rawSignal,
                initPos);
        int endOfActualSegment = this.obtainTheEndOfSegment(rawSignal, initOfActalSegment + this.maxLengthOfSegment);//initOfActalSegment+this.maxLengthOfSegment;
        Segment segment = rawSignal.subSegment(initOfActalSegment,
                endOfActualSegment);       
        segment = segment.normalize();
        int posOfMax = segment.getPosOfMax();
        int fiftyPos = segment.looksPositionOfNearestValueOnSubSegment(fifty, 0, posOfMax);
        int dif = fiftyPos - 10;
        if (dif > 0) {
            segment = segment.subSegment(dif, endOfActualSegment);
View Full Code Here


            while (dif != 0) {
                segment.add(0, firstValue);
                dif++;
            }
        }
        segment = segment.normalize();
        return segment;
    }

    /**
     *
 
View Full Code Here

                    if (!this.parentControl.isWaitingForClose()) {
                        this.doCharts(segment);
                    }

                    segment = segment.normalize();

                    finalSignal = processor.calcDerivatives(segment, new SimpleDerivative());

                    if (!this.parentControl.isWaitingForClose()) {
                        this.doDerivatives(segment);
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.