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;
}