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();
}
/**
* @param segment
* @return correlation of segment