Skip to main content
. Author manuscript; available in PMC: 2019 Feb 26.
Published in final edited form as: Analyst. 2018 Feb 26;143(5):1147–1156. doi: 10.1039/c7an01888f

Algorithm 1.

Algorithm for calculating the maximum relevance minimum redundancy (mRMR) feature set

Input: F ∈ ℝS×B c ∈ ℤS N
  Output: n ∈ ℤN
  1: n = ∅
  2: while |n| ≤ N do //while features <N
  3:   j = 1
  4:   while jB do
  5:     find j such that eqn (1) is maximized
  6:   append j to n
  7:   end while
  8: end while