Skip to main content
. 2018 Apr 28;18(5):1374. doi: 10.3390/s18051374
Algorithm 1: Algorithm to calculate night comparison features. Feature vectors ni are extracted from nights before a non-migraine day and vectors mj from nights before a migraine day.
input: Feature vectors Forig={n1,,na,m1,,mb}
output: Night comparison feature matrix F, labels L
counter = 1;
Inline graphic
return feature matrix F, labels L;