peakml
Interface MassChromatogram.MassCalculator<Type extends Peak>

Type Parameters:
Type - The type of peaks offered to the calculator.
Enclosing class:
MassChromatogram<gPeak extends Peak>

public static interface MassChromatogram.MassCalculator<Type extends Peak>

In order to accommodate for a different calculation of the mass for a mass chromatogram, implement this interface. The peaks associated to the mass chromatogram are passed to the getMass function.


Method Summary
 double getMass(java.util.Vector<Type> peaks)
          This method calculates the mass for the given peaks.
 

Method Detail

getMass

double getMass(java.util.Vector<Type> peaks)
This method calculates the mass for the given peaks.

Parameters:
peaks - The peaks to calculate the mass from.
Returns:
The calculated mass.