You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1d18895
Browse filesBrowse the repository at this point in the historyBrowse files
[INTERNAL,API] gsl-removal: replace GSL function with Eigen functions
removed gsl_linalg_LU_decomp & _LU_solve
removed gsl_lanalg_SV_devomp with Eigen SVD
removed gsl_blas_dgemm
removed fft
removed fft
deletion of CompareFouriertransform
changed PeakPickerHiRes spline to Eigen
changed spline in TOFCalibration
wrapped spline functionality
changed cubic spline in TransformationModel
changed b_spline in TransformationModel
changed LM-Fitter in GammaDistributionFitter
changed LM in GaussFitter
changed LM in GumbelDistFitter
changed LM in PeakPickerWavelet
changed LM in TwoDOptimizer
changed LM in TraceFitters
changd LM in LevMarqFitter and EmgFitter
changed LM in OptimizedPeak
remove debug output to std::out in SavitzkyGolayFilter
@brief calculate the Discrete Cosines Fourier Transformation.
174
-
175
-
This Function transforms a given MSSpectrum to a Discrete Cosines Fourier Transformation. It stores only the part of the cosines of the FFT in
176
-
the FloatDataArray which is a container from the MSSpectrum. Only call this function, if you are sure there is no other transformation done earlier over the same MSSpectrum, because it isn't checked if there already exists a transformation.
177
-
*/
178
-
voidtransform_(MSSpectrum<> & spec);
179
-
180
164
/**
181
165
@brief function for the test if cell i,j of the grid is inside the band
Copy file name to clipboardExpand all lines: include/OpenMS/ANALYSIS/MAPMATCHING/TransformationDescription.h
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -49,8 +49,7 @@ namespace OpenMS
49
49
- @p none (TransformationModel): \f$ f(x) = x \f$ (identity)
50
50
- @p identity: Same as @p none, but intended for reference files (used to indicate that no other model should be fit, because the identity is already optimal).
51
51
- @p linear (TransformationModelLinear): \f$ f(x) = slope * x + intercept \f$
52
-
- @p interpolated (TransformationModelInterpolated): Interpolation between pairs, extrapolation using first and last pair. Supports different interpolation types.
@remark TransformationDescription stores data points, TransformationModel stores parameters. That way, data can be modeled using different models/parameters, and models can still keep a representation of the data in the format they need (if at all).
56
55
@@ -107,7 +106,7 @@ namespace OpenMS
107
106
const DataPoints & getDataPoints() const;
108
107
109
108
/// Non-mutable access to the model parameters
110
-
voidgetModelParameters(Param & params) const;
109
+
constParam& getModelParameters() const;
111
110
112
111
/// Computes an (approximate) inverse of the transformation
Copy file name to clipboardExpand all lines: include/OpenMS/ANALYSIS/MAPMATCHING/TransformationModel.h
+5-71Lines changed: 5 additions & 71 deletions
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@
38
38
#include<OpenMS/DATASTRUCTURES/Param.h>
39
39
40
40
#include"OpenMS/MATH/GSL_WRAPPER/gsl_wrapper.h"
41
+
#include"OpenMS/MATH/MISC/Spline2d.h"
41
42
42
43
namespaceOpenMS
43
44
{
@@ -74,9 +75,9 @@ namespace OpenMS
74
75
}
75
76
76
77
/// Gets the (actual) parameters
77
-
voidgetParameters(Param & params) const
78
+
constParam & getParameters() const
78
79
{
79
-
params = params_;
80
+
return params_;
80
81
}
81
82
82
83
/// Gets the default parameters
@@ -147,7 +148,7 @@ namespace OpenMS
147
148
148
149
Between the data points, the interpolation uses the neighboring points. Outside the range spanned by the points, we extrapolate using a line through the first and the last point.
149
150
150
-
Different types of interpolation (controlled by the parameter @p interpolation_type) are supported: "linear", "polynomial", "cspline", and "akima". Note that the number of required data points may differ between types.
151
+
Interpolation is done by a cubic spline. Note that at least 4 data point are required.
151
152
152
153
@ingroup MapAlignment
153
154
*/
@@ -175,80 +176,13 @@ namespace OpenMS
175
176
protected:
176
177
/// Data coordinates
177
178
std::vector<double> x_, y_;
178
-
/// Number of data points
179
-
size_t size_;
180
-
/// Look-up accelerator
181
-
deprecated_gsl_interp_accel * acc_;
182
179
/// Interpolation function
183
-
deprecated_gsl_interp * interp_;
180
+
Spline2d<double> * interp_;
184
181
/// Linear model for extrapolation
185
182
TransformationModelLinear * lm_;
186
183
};
187
184
188
185
189
-
/**
190
-
@brief B-spline model for transformations
191
-
192
-
In the range of the data points, the transformation is evaluated from a cubic smoothing spline fit to the points. The number of breakpoints is given as a parameter (@p num_breakpoints). Outside of this range, linear extrapolation through the last point with the slope of the spline at that point is used.
193
-
194
-
Positioning of the breakpoints is controlled by the parameter @p break_positions. Valid choices are "uniform" (equidistant spacing on the data range) and "quantiles" (equal numbers of data points in every interval).
195
-
196
-
@ingroup MapAlignment
197
-
*/
198
-
classOPENMS_DLLAPI TransformationModelBSpline :
199
-
public TransformationModel
200
-
{
201
-
public:
202
-
/**
203
-
@brief Constructor
204
-
205
-
@exception IllegalArgument is thrown if not enough data points are given or if the required parameter @p num_breakpoints is missing.
0 commit comments