152 std::size_t numChains =
beta().size();
154 RealVector betaUp(numChains);
155 RealVector betaDown(numChains);
157 betaDown(numChains-1) = 0.0;
158 for(std::size_t i = 0; i != numChains-1; ++i){
159 betaDown(i) =
beta()(i+1);
160 betaUp(i+1) =
beta()(i);
163 RealVector energyDiffUp(numChains);
164 RealVector energyDiffDown(numChains);
165 if(!m_integrateEnergyDifferences){
166 noalias(energyDiffUp) =
samples().energy*(betaUp-
beta());
167 noalias(energyDiffDown) =
samples().energy*(betaDown-
beta());
177 noalias(energyDiffUp) = energyDiffDown;
191 m_energyDiffUp.push_back(energyDiffUp);
192 m_energyDiffDown.push_back(energyDiffDown);