Filter löschen
Filter löschen

using a window size and one number shift

3 Ansichten (letzte 30 Tage)
Tino
Tino am 23 Okt. 2020
Bearbeitet: Tino am 23 Okt. 2020
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

Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by