Subsequent time-series matching

Max

I've been stuck with subsequent matching of time-series in MATLAB (I'm new to it).

I have two time-series: A (of length a) and B (of length b). Assume that a is much larger than b. The task is to find the closest window from A to B (according to Euclidian metric).

In order to do that I construct additional matrix C that stores all subsequences of the length b from A and then use pdist2(C, B). Obviously it works slowly and requires too much memory.

So I have a couple of questions:

  1. How to obtain C without loops (actually to reshape A)?

  2. What are the common ways to solve this problem? (preferably in MATLAB but other environments are also possible)

Thanks for your help!

jolo

첫 번째 질문에 대해서는

tmp = repmat(A,1,b);
C = reshape([tmp zeros(1,b)],a,b);
C = C(1:(a-b+1),:);

게다가, pdist2이 아주 좋은 솔루션에 비해 매우 느립니다. Matlab에서 쌍으로 제곱 된 유클리드 거리를 효율적으로 계산 합니다.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

Resample Time Series in pandas

분류에서Dev

for loop in irregular time series

분류에서Dev

R: time series with value

분류에서Dev

Jquery select /unselect works for first time not for subsequent clicks

분류에서Dev

Matching ID between two pandas series

분류에서Dev

Remove hours from time series

분류에서Dev

Time Series using numpy or pandas

분류에서Dev

Expand a time series by specified time lengths in R

분류에서Dev

Matching value on date (year, month, day) but not time

분류에서Dev

Time Series Prediction with Keras - Error in Model Values

분류에서Dev

Plotly: How to plot time series in Dash Plotly

분류에서Dev

Aggregation of time-series data on multiple columns

분류에서Dev

issues plotting multivariate time series in R

분류에서Dev

Selecting regular intervals from time series

분류에서Dev

Combining time series data into a single data frame

분류에서Dev

format a time series as dataframe with julian date

분류에서Dev

TIme series data in R, problems with dates

분류에서Dev

linear interpolate 15 Hz time series to match with 25 Hz time series in R

분류에서Dev

Adding vertical line to Date formatted time-series in matplotlib

분류에서Dev

nvd3, lineWithFocusChart for time series data is not displaying properly

분류에서Dev

How to create variables that indicate start and end periods in a time series in R

분류에서Dev

How to detect sign change (eg, positive to negative) in time series data?

분류에서Dev

What's an efficient way to store a time-series?

분류에서Dev

How to plot beautifully the segmentation of time series (pandas dataframe)

분류에서Dev

Excel chart: How to reverse the X axis of time series data

분류에서Dev

xarray: calculate time-series of daily anomalies from *local* monthly means

분류에서Dev

Why does the time zone attribute get dropped when I add a new series to a zoo object

분류에서Dev

Time Series Insights Gen2에 데이터 쓰기

분류에서Dev

Azure Time Series Insights에 물리적 단위 표시

Related 관련 기사

  1. 1

    Resample Time Series in pandas

  2. 2

    for loop in irregular time series

  3. 3

    R: time series with value

  4. 4

    Jquery select /unselect works for first time not for subsequent clicks

  5. 5

    Matching ID between two pandas series

  6. 6

    Remove hours from time series

  7. 7

    Time Series using numpy or pandas

  8. 8

    Expand a time series by specified time lengths in R

  9. 9

    Matching value on date (year, month, day) but not time

  10. 10

    Time Series Prediction with Keras - Error in Model Values

  11. 11

    Plotly: How to plot time series in Dash Plotly

  12. 12

    Aggregation of time-series data on multiple columns

  13. 13

    issues plotting multivariate time series in R

  14. 14

    Selecting regular intervals from time series

  15. 15

    Combining time series data into a single data frame

  16. 16

    format a time series as dataframe with julian date

  17. 17

    TIme series data in R, problems with dates

  18. 18

    linear interpolate 15 Hz time series to match with 25 Hz time series in R

  19. 19

    Adding vertical line to Date formatted time-series in matplotlib

  20. 20

    nvd3, lineWithFocusChart for time series data is not displaying properly

  21. 21

    How to create variables that indicate start and end periods in a time series in R

  22. 22

    How to detect sign change (eg, positive to negative) in time series data?

  23. 23

    What's an efficient way to store a time-series?

  24. 24

    How to plot beautifully the segmentation of time series (pandas dataframe)

  25. 25

    Excel chart: How to reverse the X axis of time series data

  26. 26

    xarray: calculate time-series of daily anomalies from *local* monthly means

  27. 27

    Why does the time zone attribute get dropped when I add a new series to a zoo object

  28. 28

    Time Series Insights Gen2에 데이터 쓰기

  29. 29

    Azure Time Series Insights에 물리적 단위 표시

뜨겁다태그

보관