Calculating the between-column squared correlations
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Amin Kassab-Bachi
am 31 Okt. 2021
Kommentiert: Amin Kassab-Bachi
am 1 Nov. 2021
I want to use the Latin hypercube sample function (lhsdesign). In the examples provided in the documentation the quality of the generated design is measured by calculating the sum of between-column aquared correlations,
rng default % For reproducibility
X= lhsdesign(10,4); % X is a 10-by-4 design matrix.
y= corr(X);
(sum(y(:).^2)-4)/2 % the 4 subtracted to remove the ones on the diagonal of y.
Why was the sum of the squared correlations divided by 2 ?
Thanks
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Industrial Statistics finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!