using a window size and one number shift

조회 수: 2 (최근 30일)
Tino
Tino 2020년 10월 23일
편집: Tino 2020년 10월 23일
Hello everyone
I have variables. And I want to analyse the variables using a function to get the Hotelling ttest for each point.for
x y z
0.1 0.2 0.3
0.4 0.6 0.1
0.8 0.7 0.4
0.6 0.5 0.4
0.5 0.5 0.5
0.2 0.4 0.8
0.4 0.8 0.9
0.4 0.5 0.3
How do I implement a window size of 2 which will always be in even numbers and a shift of 1 for the variables
For instance if I use a window size of 2 using one shift
x y z
0.1 0.2 0.3
0.4 0.6 0.1
The next window size is
x y z
0.4 0.6 0.1
0.8 0.7 0.4
Then group the window sizes into
group x y z
1 0.1 0.2 0.3
1 0.4 0.6 0.1
2 0.4 0.6 0.1
2 0.8 0.7 0.4
I can then analyse it using the function
[e] = T2Hot2ihe(Bix, 0.05); to give me first result. Please note that the results must be equal to the length of variables
it continues to the next window size.
x y z
0.4 0.6 0.1
0.8 0.7 0.4
The next window size is
x y z
0.8 0.7 0.4
0.6 0.5 0.4
Then group the window sizes into
group x y z
1 0.4 0.6 0.1
1 0.8 0.7 0.4
2 0.8 0.7 0.4
2 0.6 0.5 0.4
This goes down until there is no more window size.
can then analyse it using the function
[e] = T2Hot2ihe(Bix, 0.05); to give me second result.
Please note that the result is obtain for point and ends at the last point where there is no window size to compute.
I would be very grateful if you help me with this
Thanks
Jo

답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by