Inheritance diagram for nitime.analysis.correlation:
Analyzer object for correlation analysis. Has the same API as the CoherenceAnalyzer
input: TimeSeries object :
>>> np.set_printoptions(precision=4) # for doctesting >>> t1 = ts.TimeSeries(data = np.sin(np.arange(0, ... 10*np.pi,10*np.pi/100)).reshape(2,50), ... sampling_rate=np.pi) >>> c1 = CorrelationAnalyzer(t1) >>> c1 = CorrelationAnalyzer(t1) >>> c1.corrcoef array([[ 1., -1.], [-1., 1.]]) >>> c1.xcorr.sampling_rate 3.1415926536 Hz >>> c1.xcorr.t0 -15.91549430915 s
The correlation coefficient between every pairwise combination of time-series contained in the object
The cross-correlation between every pairwise combination time-series in the object. Uses np.correlation(‘full’).
TimeSeries: the time-dependent cross-correlation, with zero-lag :
at time=0 :
The cross-correlation between every pairwise combination time-series in the object, where the zero lag correlation is normalized to be equal to the correlation coefficient between the time-series
TimeSeries: A TimeSeries object :
This analyzer takes two time-series. The first is designated as a time-series of seeds. The other is designated as a time-series of targets. The analyzer performs a correlation analysis between each of the channels in the seed time-series and all of the channels in the target time-series.
seed_time_series: a time-series object :
target_time_series: a time-series object :