scalib.modeling#

Linear Discriminant Analysis (LDA)#

LDA is a also known as pooled Gaussian templates in the side-channel litterature. LDAClassifier is the main implementation of the LDA, and MultiLDA is a convenience wrapper for profiling multiple variables using the same traces (but possibly different sets of POIs).

LDAClassifier

Models the leakage \(\mathbf{l}\) with \(n_s\) dimensions using the linear discriminant analysis classifier (LDA) with integrated dimensionality reduction.

MultiLDA

Perform LDA on nv distinct variables for the same leakage traces.

LdaAcc

Models the leakage \(\mathbf{l}\) with \(n_s\) dimensions using the linear discriminant analysis classifier (LDA) with integrated dimensionality reduction.

Lda

See LdaAcc.

RLDAClassifier

Regression-based Linear Discriminant Analysis.