120 max_charge_ = max_charge;
140 return inv_table_steps_;
146 inv_table_steps_ = 1. / table_steps;
147 table_steps_ = table_steps;
165 return gamma_table_max_index_;
171 return exp_table_max_index_;
176 static float myPow(
float a,
float b);
Isotope pattern generator for coarse isotope distributions.
Definition: CoarseIsotopePatternGenerator.h:105
Definition: IsotopeDistribution.h:65
std::vector< MassAbundance > ContainerType
Definition: IsotopeDistribution.h:72
Implements the isotope wavelet function.
Definition: IsotopeWavelet.h:51
static double table_steps_
Definition: IsotopeWavelet.h:243
static float myPow2_(float i)
Internally used function; uses register shifts for fast computation of the power function....
Int i
Definition: IsotopeWavelet.h:235
static UInt max_charge_
Definition: IsotopeWavelet.h:240
virtual ~IsotopeWavelet()
Destructor.
static IsotopeDistribution averagine_
Definition: IsotopeWavelet.h:258
static double getValueByLambdaExtrapol(const double lambda, const double tz1)
Returns the value of the isotope wavelet at position t. This function is usually significantly slower...
static UInt getNumPeakCutOff(const double mass, const UInt z)
static double getValueByLambdaExact(const double lambda, const double tz1)
static std::vector< double > gamma_table_
Definition: IsotopeWavelet.h:247
static double inv_table_steps_
Definition: IsotopeWavelet.h:244
static IsotopeWavelet * init(const double max_m, const UInt max_charge)
static double getTableSteps()
Returns the table_steps_ parameter.
Definition: IsotopeWavelet.h:128
static UInt getMaxCharge()
Returns the largest charge state we will consider.
Definition: IsotopeWavelet.h:112
static std::vector< double > exp_table_
Definition: IsotopeWavelet.h:251
static std::vector< double > gamma_table_new_
Definition: IsotopeWavelet.h:248
static Size gamma_table_max_index_
Definition: IsotopeWavelet.h:260
static Size getGammaTableMaxIndex()
Returns the largest possible index for the pre-sampled gamma table.
Definition: IsotopeWavelet.h:163
static double getInvTableSteps()
Returns the inv_table_steps_ parameter.
Definition: IsotopeWavelet.h:138
static Size getExpTableMaxIndex()
Returns the largest possible index for the pre-sampled exp table.
Definition: IsotopeWavelet.h:169
static double getLambdaL(const double m)
Returns the mass-parameter lambda (linear fit).
IsotopeWavelet()
Default Constructor.
static double getValueByMass(const double t, const double 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 void setMaxCharge(const UInt max_charge)
Sets the max_charge parameter.
Definition: IsotopeWavelet.h:118
static Size exp_table_max_index_
Definition: IsotopeWavelet.h:261
static void computeIsotopeDistributionSize_(const double max_m)
Initializes the internally used averagine model; automatically called by the public constructor.
static float myLog2_(float i)
Internally used function uses register shifts for fast computation of the power function....
static double getValueByLambda(const double lambda, const double tz1)
Returns the value of the isotope wavelet at position t via a fast table lookup. Usually,...
static const IsotopeDistribution::ContainerType & getAveragine(const double m, UInt *size=nullptr)
Computes the averagine isotopic distribution we would expect at the de-convoluted mass.
static UInt getNumPeakCutOff(const double mz)
static void setTableSteps(const double table_steps)
Sets the table_steps parameter.
Definition: IsotopeWavelet.h:144
IsotopeWavelet(const double max_m, const UInt max_charge)
Constructor.
static void preComputeExpensiveFunctions_(const double max_m)
Should be called once before values are drawn from the isotope wavelet function. The function is auto...
static CoarseIsotopePatternGenerator solver_
Definition: IsotopeWavelet.h:257
static UInt getMzPeakCutOffAtMonoPos(const double mass, const UInt z)
static IsotopeWavelet * getInstance()
Definition: IsotopeWavelet.h:58
static std::vector< double > sine_table_
Definition: IsotopeWavelet.h:254
static float myPow(float a, float b)
Internally used function; uses register shifts for fast computation of the power function.
static IsotopeWavelet * me_
Definition: IsotopeWavelet.h:188
float f
Definition: IsotopeWavelet.h:236
Internal union for fast computation of the power function.
Definition: IsotopeWavelet.h:234
int Int
Signed integer type.
Definition: Types.h:102
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
const double IW_PROTON_MASS
Definition: IsotopeWaveletConstants.h:68
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48