.. _centering: ========= Centering ========= Although BFEs are inherently non-parametric, practical use of a BFE requires a truncation of an infinite series of terms, and therefore the reconstructed fields depend on the expansion center [#f1]_. To help with this issue, every `Component` has the option of centering the expansion on a fraction of the most bound particles, which we call :math:`E`-centering. Similarly, the basis may be rotated to realign the vertical axis with the current :math:`L_z` axis, which we call :math:`J`-centering. Both may be used together. The algorithms for both centering types rely on the same logic as follows. The user specifies the desired number of particles for specifying the center or orientation, called ``nEJwant``. On the first call, all particles are ranked by binding energy. The ``nEJwant`` values are retained and the center-of-mass and/or angular momentum values are computed from this central component. The maximum potential (minimum binding energy) in this group is recorded for subsequent steps, :math:`E_{max}`. On subsequent steps, particles are tested for membership if the EJ particle group is not full or has energy value :math:`E