Previous topic

Module correlationsTestParam

Next topic

Module correlationsWriter

This Page

Compute correlations.

Module correlationsCorrelation

Provide a classes in order to compute the correlation.

Inheritance diagram of Correlation, CorrelationForSublen

class correlations.correlationsCorrelation.Correlation

Provide attributes for the parameters of a correlation and a method makeCorrWithMaxlag() to compute the correlation.

Attributes :
LenTrace: int

Defined in the module correlations.correlationsParam.

Maxlag: int

Defined in the module correlations.correlationsParam.

GoodNumber: int

Defined in the module correlations.correlationsParam.

getMaxlag()
getLenTrace()
getGoodNumber()
makeCorrWithMaxlag(trace01, trace02)

Return the correlation of trace01 and trace02.

Parameters :
trace01, trace02: numpy array

the traces for the correlation:

Note

Requirement: The trace trace01 and trace02 are supposed to have the same length.

makeCorrWithMaxlagNormailzed(trace01, trace02)

Return the correlation of trace01 and trace02 normalized.

Parameters :
trace01, trace02: numpy array

the traces for the correlation:

Note

Requirement: The trace trace01 and trace02 are supposed to have the same length.

class correlations.correlationsCorrelation.CorrelationForSublen
getNumberSubLen()
getGoodNumber()
makeCorrelationSubLenStackWithNormalisationAndMaxlag(trace01, trace02)


Whisper project: FP7 ERC Advanced grant 227507 (WHISPER).
Codes are develop for the Whisper project (Seismic ambient noise).
If you use this code, specify it is provide by: Whisper project FP7 ERC Advanced grant 227507 (WHISPER).
Author: Xavier Briand. For questions, send email to xav.briand.whisper@gmail.com with subject begin exactly with [whisper].