Package systole.domain.signals

Examples of systole.domain.signals.FinalSignal


     * @param d
     * @return final segment derivatives
     */
    public FinalSignal calcDerivatives(Segment segment, Derivative d) {

        FinalSignal finalSignal = d.derivate(segment);

        return finalSignal;
    }
View Full Code Here


     * @param segment
     */
    public CorrelationByResult(Segment segment) {
        super(segment);
        SignalProcessor processor = new SignalProcessor();
        FinalSignal finalSignal = processor.calcDerivatives(segment, new SimpleDerivative());
        SignalAnalyzer analyzer = new SignalAnalyzer(BigDecimal.ONE, finalSignal, 0);
        this.patternAnalysis = analyzer.calculateParameters();
    }
View Full Code Here

*/
public class DividedDifferences implements Derivative {

    public FinalSignal derivate(Segment f) {

        FinalSignal derivatives = new FinalSignal();

        derivatives.setFinalSegment(f);
        derivatives.setFirstDerivatite(this.getFirstDerivative(f));
        derivatives.setSecondDerivative(this.getSecondDerivative(f));
        derivatives.setThirdDerivative(this.getThirdDerivative(f));
        derivatives.setFourthDerivative(this.getFourthDerivative(f));
        return derivatives;

    }
View Full Code Here

    return derivated;
    }*/
    public FinalSignal derivate(Segment segment) {

        FinalSignal signal = new FinalSignal();

        signal.setFinalSegment(segment);

        Segment first = this.getFirstDerivative(segment);
        first.multiplyVectorBy(new BigDecimal(8));
        first.addValuteToVector(new BigDecimal(50.0));
        signal.setFirstDerivatite(first);

        Segment second = this.getSecondDerivative(first);
        second.multiplyVectorBy(new BigDecimal(10));
        second.addValuteToVector(new BigDecimal(50.0));
        signal.setSecondDerivative(second);

        Segment third = this.getThirdDerivative(second);
        third.multiplyVectorBy(new BigDecimal(2));
        third.addValuteToVector(new BigDecimal(50.0));
        signal.setThirdDerivative(third);


        Segment fourth = this.getThirdDerivative(third);
        fourth.multiplyVectorBy(new BigDecimal(5));
        fourth.addValuteToVector(new BigDecimal(50.0));
        signal.setFourthDerivative(fourth);

        return signal;
    }
View Full Code Here

        boolean newModel = (analysis.getAnalysisResult() == null);

        this.originalResults = analysis.getAnalysisResult();
        this.originalFinalSignal = analysis.getFinalSegment();

        this.currentFinalSignal = new FinalSignal();
        this.currentResults = new AnalysisResult();

        if (!newModel) {
            this.currentResults.setAod((ParameterAOD) this.originalResults.getAod().clone());
            this.currentResults.setAos((ParameterAOS) this.originalResults.getAos().clone());
View Full Code Here

            this.originalResults.setIar(this.currentResults.getIar());
            this.originalResults.setT(this.currentResults.getT());

            // no clono porque si ya existía pierdo el ID y sería otro objeto (registro en la bd)
            if (this.originalFinalSignal == null) {
                this.originalFinalSignal = new FinalSignal();
            }
            this.originalFinalSignal.setFinalSegment(this.currentFinalSignal.getFinalSegment());
            this.originalFinalSignal.setFirstDerivatite(this.currentFinalSignal.getFirstDerivatite());
            this.originalFinalSignal.setSecondDerivative(this.currentFinalSignal.getSecondDerivative());
            this.originalFinalSignal.setThirdDerivative(this.currentFinalSignal.getThirdDerivative());
View Full Code Here

TOP

Related Classes of systole.domain.signals.FinalSignal

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.