35 #ifndef OPENMS_TRANSFORMATIONS_FEATUREFINDER_ISOTOPEWAVELET_H
36 #define OPENMS_TRANSFORMATIONS_FEATUREFINDER_ISOTOPEWAVELET_H
65 static void destroy();
118 max_charge_ = max_charge;
136 return inv_table_steps_;
142 inv_table_steps_ = 1. / table_steps;
143 table_steps_ = table_steps;
160 return gamma_table_max_index_;
166 return exp_table_max_index_;
171 static float myPow(
float a,
float b);
206 static void preComputeExpensiveFunctions_(
const DoubleReal max_m);
211 static void computeIsotopeDistributionSize_(
const DoubleReal max_m);
218 static float myPow2_(
float i);
224 static float myLog2_(
float i);
static DoubleReal table_steps_
Definition: IsotopeWavelet.h:237
float f
Definition: IsotopeWavelet.h:230
static Size gamma_table_max_index_
Definition: IsotopeWavelet.h:253
static DoubleReal getInvTableSteps()
Returns the inv_table_steps_ parameter.
Definition: IsotopeWavelet.h:134
static void setTableSteps(const DoubleReal table_steps)
Sets the table_steps parameter.
Definition: IsotopeWavelet.h:140
static std::vector< DoubleReal > sine_table_
Definition: IsotopeWavelet.h:248
const double IW_PROTON_MASS
Definition: IsotopeWaveletConstants.h:70
static DoubleReal inv_table_steps_
Definition: IsotopeWavelet.h:238
static void setMaxCharge(const UInt max_charge)
Sets the max_charge parameter.
Definition: IsotopeWavelet.h:116
#define NULL
Definition: IsotopeWaveletParallelFor.h:41
Isotope distribution class.
Definition: IsotopeDistribution.h:61
Int i
Definition: IsotopeWavelet.h:229
static std::vector< DoubleReal > gamma_table_new_
Definition: IsotopeWavelet.h:242
static std::vector< DoubleReal > exp_table_
Definition: IsotopeWavelet.h:245
Implements the isotope wavelet function.
Definition: IsotopeWavelet.h:51
static std::vector< DoubleReal > gamma_table_
Definition: IsotopeWavelet.h:241
static IsotopeWavelet * me_
Definition: IsotopeWavelet.h:183
static DoubleReal getValueByMass(const DoubleReal t, const DoubleReal m, const UInt z, const Int mode=+1)
Returns the value of the isotope wavelet at position t. Usually, you do not need to call this functio...
Definition: IsotopeWavelet.h:77
static Size getExpTableMaxIndex()
Returns the largest possible index for the pre-sampled exp table.
Definition: IsotopeWavelet.h:164
static UInt getMaxCharge()
Returns the largest charge state we will consider.
Definition: IsotopeWavelet.h:110
static IsotopeWavelet * getInstance()
Definition: IsotopeWavelet.h:59
static Size exp_table_max_index_
Definition: IsotopeWavelet.h:254
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:144
static Size getGammaTableMaxIndex()
Returns the largest possible index for the pre-sampled gamma table.
Definition: IsotopeWavelet.h:158
Internal union for fast computation of the power function.
Definition: IsotopeWavelet.h:227
static UInt max_charge_
Definition: IsotopeWavelet.h:234
static DoubleReal getTableSteps()
Returns the table_steps_ parameter.
Definition: IsotopeWavelet.h:125
std::vector< std::pair< Size, double > > ContainerType
container type, first holds the weight of the isotope, second the probability
Definition: IsotopeDistribution.h:68
int Int
Signed integer type.
Definition: Types.h:100
static IsotopeDistribution averagine_
Definition: IsotopeWavelet.h:251