19 #include <boost/bind.hpp>
22 using namespace kome::objects;
27 #define new new( _NORMAL_BLOCK, __FILE__, __LINE__ )
28 #define malloc( s ) _malloc_dbg( s, _NORMAL_BLOCK, __FILE__, __LINE__ )
220 addData( sampleId, profileId, peakVal, peak );
296 if( idx < 0 || idx >= (
int)
m_params.size() ) {
300 return m_params[ idx ].name.c_str();
314 if( idx < 0 || idx >= (
int)
m_params.size() ) {
318 return m_params[ idx ].value.c_str();
331 if( idx < 0 || idx >= (
int)
m_params.size() ) {
340 std::string n =
NVL( name,
"" );
343 for(
int i = 0; i < (int)
m_params.size() && idx < 0; i++ ) {
344 if( n.compare(
m_params[ i ].name ) == 0 ) {
double getArea()
gets peak area
int getCharge()
gets the charge state
void setCluster(PeaksCluster2D *cluster)
sets peaks cluster
PeaksCluster2D * m_cluster
unsigned int getDataListSize()
gets the data list size
void setFwhm(const double fwhm)
sets FWHM
void addPeak(Peak2DElement *peak)
adds peak
unsigned int getNumberOfParameters()
gets the number of parameters
double getPrecursorMass()
gets the precursor mass
double getDataPeakValue(const unsigned int idx=0)
gets the data peak value
std::vector< ParamInfo > m_params
int getParameterType(const char *name)
gets parameter type
void setIntensity(const double intensity)
sets intensity
void clearData()
clears data
void removePeak(Peak2DElement *peak)
removes peak
interfaces of Peaks2D class
void setMz(const double mz, const double startMz, const double endMz)
sets m/z
void setCharge(const int charge)
sets the charge state
void clearParameters()
clears parameters
2-dimentional peaks cluster
void setParameter(const char *name, const char *value, const int type=0)
sets parameters
double getFwhm()
gets FWHM
double getArea()
gets area
void setArea(const double area)
sets area
interfaces of Peak2DElement class
Peak2DElement(Peaks2D *peaks)
constructor
interfaces of PeakElement class
#define NVL(checkVal, replaceVal)
double getEndRt()
gets end RT
int getId()
gets peak2d id
const char * getParameterValue(const char *name)
gets parameter value
int issueId(Peak2DElement *peak2dElement)
to issue the peak2d id
double getEndMz()
gets end m/z
int getDataProfileId(const unsigned int idx=0)
gets data profile ID
PeaksCluster2D * getCluster()
gets cluster
int searchParameterIndex(const char *name)
searches parameter index
void addData(const int sampleId, const int profileId, const double peakVal, PeakElement *peak)
adds data
double getStartMz()
gets start m/z
void setId(int id)
sets peak2d id
void setRt(const double rt, const double startRt, const double endRt)
sets RT
double getFwhm()
gets the FWHM
const char * getParameterName(const int idx)
gets parameter name
void setData(const int sampleId, const int profileId, const double peakVal, PeakElement *peak)
sets data
double getStartRt()
gets start RT
PeakElement * getDataPeak(const unsigned int idx=0)
gets data peak
double getIntensity()
gets intensity
int getDataSampleId(const unsigned int idx=0)
gets data sample ID
virtual ~Peak2DElement()
destructor
std::vector< DataInfo > m_dataList
void setPrecursorMass(const double precursor)
sets the precursor mass
interfaces of PeaksCluster2D class