baseline subtract class
More...
#include <BaselineSubtract.h>
baseline subtract class
Definition at line 32 of file BaselineSubtract.h.
gets updated data points
- Parameters
-
| [in] | src | source xy data |
| [out] | dst | the object to store updated xy data |
Definition at line 126 of file BaselineSubtract.cpp.
132 LOG_WARN( FMT(
"The baseline function is not assigned." ) );
147 kome::plugin::PluginCallTool::setXYData( params, src );
148 kome::plugin::PluginCallTool::setBaseline( params, baseline );
149 kome::plugin::PluginCallTool::setSettingValues( params,
m_settings );
151 m_fun->invoke( ¶ms );
data points data of profile management class
kome::objects::SettingParameterValues m_settings
parameters of plug-in function management class
void subtractBaseline(kome::core::XYData &src, kome::core::XYData &dst, kome::core::XYData &baseline)
subtracts baseline
kome::plugin::PluginCall * m_fun
unsigned int getLength()
gets the number of points @return the number of points
This method is called by update method. (override method)
- Parameters
-
| [in] | src | source xy data |
| [out] | dst | the object to store updated xy data |
| [in] | chrom | chromatogram |
Implements kome::objects::XYDataOperation.
Definition at line 159 of file BaselineSubtract.cpp.
virtual void getUpdatedData(kome::core::XYData &src, kome::core::XYData &dst)
gets updated data points
This method is called by update method. (override method)
- Parameters
-
| [in] | src | source xy data |
| [out] | dst | the object to store updated xy data |
| [in] | spec | spectrum |
Implements kome::objects::XYDataOperation.
Definition at line 168 of file BaselineSubtract.cpp.
virtual void getUpdatedData(kome::core::XYData &src, kome::core::XYData &dst)
gets updated data points
This method is called by update method. (override method)
- Parameters
-
| [in] | src | source xy data |
| [out] | dst | the object to store updated xy data |
| [in] | sample | sample |
Implements kome::objects::XYDataOperation.
Definition at line 177 of file BaselineSubtract.cpp.
virtual void getUpdatedData(kome::core::XYData &src, kome::core::XYData &dst)
gets updated data points
sets baseline information
- Parameters
-
| [in] | func | baseline function |
| [in] | settings | baseline setting parameter values |
Definition at line 49 of file BaselineSubtract.cpp.
58 if( settings !=
NULL ) {
63 kome::plugin::PluginFunctionItem item;
64 item.setInfo(
m_fun );
67 std::string name = FMT(
"Baseline Subtract[%s", item.getLongName() );
71 if( !paramStr.empty() ) {
72 paramStr.append(
", " );
78 paramStr.append( FMT(
"%s=%s", name.c_str(), value.c_str() ) );
81 if( paramStr.empty() ) {
85 name.append( FMT(
"(%s)]", paramStr.c_str() ) );
void setName(const char *name)
sets name
kome::objects::SettingParameterValues m_settings
const char * getParameterValue(const unsigned int index)
gets parameter value
const char * getParameterName(const unsigned int index)
gets parameter name
unsigned int getNumberOfParameters()
gets the number of parameters
kome::plugin::PluginCall * m_fun
subtracts baseline
- Parameters
-
| [in] | src | source xy data |
| [out] | dst | the object to store subtracted xy data |
| [in] | baseline | baseline data |
Definition at line 92 of file BaselineSubtract.cpp.
100 double* xArray = ( len == 0 ?
NULL :
new double[ len ] );
101 for(
unsigned int i = 0; i < src.
getLength(); i++ ) {
102 xArray[ i ] = src.
getX( i );
106 kome::numeric::Interpolation::linear( baseline, baseline2, xArray, src.
getLength() );
109 if( xArray !=
NULL ) {
116 for(
unsigned int i = 0; i < len; i++ ) {
117 double x = src.
getX( i );
118 double y = src.
getY( i ) - baseline2.
getY( i );
data points data of profile management class
double getX(const unsigned int index)
gets x coordinate
double getY(const unsigned int index)
gets y coordinate
void reserve(const unsigned int num)
reserves enough contiguous memory of array
void addPoint(const double x, const double y)
adds point
unsigned int getLength()
gets the number of points @return the number of points
| kome::plugin::PluginCall* kome::operation::BaselineSubtract::m_fun |
|
protected |
The documentation for this class was generated from the following files: