Algorithm 1: Algorithm to calculate night comparison features. Feature vectors are extracted from nights before a non-migraine day and vectors from nights before a migraine day. |
input: Feature vectors
output: Night comparison feature matrix F, labels L counter = 1; return feature matrix F, labels L; |