The Fundamental class is a basic storage PD class used for storing the result of a fundamental (pitch) detection algorithm: a set of candidate frequencies and the computed estimation error if present. It has two integer attributes that hold the current number of candidates and the maximum allowed and two arrays: one of frequencies and the other one containing the errors.