src/Utility/Fragment/AbstractFragment.php
protected function getChargedIon($mass, $charge)
    {
        $chargedMass = $mass + (PhysicalConstants::PROTON_MASS * $charge);
        return $chargedMass / $charge;
    }
protected function getChargedIon($mass, $charge)
    {
        $chargedMass = $mass + (PhysicalConstants::PROTON_MASS * $charge);
        return $chargedMass / $charge;
    }
protected function getChargedIon ( $ mass , $ charge ) { $ chargedMass = $ mass + ( PhysicalConstants :: PROTON_MASS * $ charge ) ; return $ chargedMass / $ charge ; }
Charges the mass to the specified charge

@param double $mass
The neutral mass to charge
@param int $charge
The integer charge value to charge too
@return double
Charges the mass to the specified charge