Examples of looksPositionOfNearestValueOnSubSegment()


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

        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);
        } else if (dif < 0) {
            BigDecimal firstValue = segment.get(0);
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.