Package systole.domain.analysis.results

Examples of systole.domain.analysis.results.ParameterIAR


    }

    private ParameterIAR calculateIAR() {
        //int posOfMaxFirstDerivative = this.firsDerivatite.getPosOfMax(this.posOfMax, this.posBeginigDiastole);//Coordenada en X del maximo derivada 1
        int posOfMaxFirstDerivative = this.finalSignal.getSecondDerivative().getPosOfMin(this.posOfMax, this.posBeginigDiastole);
        ParameterIAR param = new ParameterIAR();
        //param.setInitPos(0f);
        // if distance is zero, search from other postion
        if (posOfMaxFirstDerivative == 0) {
            int half = (this.posBeginigDiastole - this.posOfMax) / 2;
            posOfMaxFirstDerivative = half + this.finalSignal.getSecondDerivative().getPosOfMin(this.posOfMax + half, this.posBeginigDiastole);
        }

        posOfMaxFirstDerivative += this.posOfMax;

        posOfMaxFirstDerivative = this.posOfMax + this.finalSignal.getFourthDerivative().looksFirstPositionOfNearestValueOnSubSegmentDowTo(FIFTY, posOfMax, posOfMaxFirstDerivative);
        // previo a la linea superiro 30/11/11
        // posOfMaxFirstDerivative = this.obtainIntersectionDownTo(this.finalSignal.getSecondDerivative(), this.finalSignal.getFourthDerivative(), posOfMaxFirstDerivative);



        param.setInitPos(new ParameterCoord(this.k.multiply(new BigDecimal(posOfMaxFirstDerivative)), BigDecimal.ZERO));
        param.setEndPos(new ParameterCoord(this.k.multiply(new BigDecimal(posOfMaxFirstDerivative)), this.finalSignal.getFinalSegment().elementAt(posOfMaxFirstDerivative)));
        //param.setEndPos(new Float(this.posOfMax + posOfMaxFirstDerivative));       
        this.posOfIAR = posOfMaxFirstDerivative;
        return (param);
    }
View Full Code Here


        return this.correlate(segment, initOfAOD, endOfAOD);
        //return (cor.isNaN() ? 0 : cor.doubleValue());
    }

    protected BigDecimal correlationByIAR(Segment segment) {
        ParameterIAR iar = this.patternAnalysis.getIar();

        // tomo los puntos de IAR
        int initOfIAR = iar.getInitPos().getxCoord().intValue();
        int endOfIAR = iar.getEndPos().getxCoord().intValue();

        // desplazo el inicio 10 pts atras para tener mas puntos en cuenta
        initOfIAR -= 15;
        // desplazo el fin 10 pts para tener mas puntos en cuenta
        endOfIAR += 15;
View Full Code Here

     * @param initPoint
     * @param endPoint
     */
    public void updateIAR(ParameterCoord initPoint, ParameterCoord endPoint) {
        if (this.currentResults.getIar() == null) {
            this.currentResults.setIar(new ParameterIAR());
        }
        this.markAsDirty();
        this.currentResults.getIar().setInitPos(initPoint);
        this.currentResults.getIar().setEndPos(endPoint);
        this.setChanged();
View Full Code Here

TOP

Related Classes of systole.domain.analysis.results.ParameterIAR

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.