|
OpenMS
2.5.0
|
Go to the documentation of this file.
64 const String& note_ =
"") :
78 return (std::tie(first, second, note) <
84 return (std::tie(first, second, note) ==
103 virtual double evaluate(
double value)
const;
118 virtual void weightData(DataPoints& data);
123 virtual void unWeightData(DataPoints& data);
128 bool checkValidWeight(
const String& weight,
const std::vector<String>& valid_weights)
const;
137 double checkDatumRange(
const double& datum,
const double& datum_min,
const double& datum_max);
142 double weightDatum(
const double& datum,
const String& weight)
const;
147 double unWeightDatum(
const double& datum,
const String& weight)
const;
150 const Param& getParameters()
const;
153 std::vector<String> getValidXWeights()
const;
156 std::vector<String> getValidYWeights()
const;
159 static void getDefaultParameters(
Param& params);
double second
Definition: TransformationModel.h:59
Management and storage of parameters / INI files.
Definition: Param.h:73
String y_weight_
y weighting
Definition: TransformationModel.h:169
void load(const String &filename, TransformationDescription &transformation, bool fit_model=true)
Loads the transformation from an TransformationXML file.
double apply(double value) const
Applies the transformation to value.
Param params_
Parameters.
Definition: TransformationModel.h:163
double y_datum_min_
Definition: TransformationModel.h:170
Generic description of a coordinate transformation.
Definition: TransformationDescription.h:61
Exception indicating that an invalid parameter was handed over to an algorithm.
Definition: Exception.h:347
String note
Definition: TransformationModel.h:60
Base class for TOPP applications.
Definition: TOPPBase.h:144
Base class for transformation models.
Definition: TransformationModel.h:53
std::vector< DataPoint > DataPoints
Vector of coordinate pairs.
Definition: TransformationModel.h:90
DataPoint(double first_=0.0, double second_=0.0, const String ¬e_="")
Definition: TransformationModel.h:62
TransformationModel::DataPoints DataPoints
Vector of coordinate pairs.
Definition: TransformationDescription.h:103
bool operator==(const DataPoint &other) const
Definition: TransformationModel.h:82
DataPoint(const std::pair< double, double > &pair)
Definition: TransformationModel.h:70
double y_datum_max_
Definition: TransformationModel.h:171
TransformationModel()
Constructor.
Definition: TransformationModel.h:93
static double ceilDecimal(double x, int decPow)
rounds x up to the next decimal power 10 ^ decPow
Definition: MathFunctions.h:65
double x_datum_min_
Definition: TransformationModel.h:166
A more convenient string class.
Definition: String.h:58
Coordinate pair (with optional annotation)
Definition: TransformationModel.h:57
bool weighting_
Definition: TransformationModel.h:172
double first
Definition: TransformationModel.h:59
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
bool operator<(const DataPoint &other) const
Definition: TransformationModel.h:76
Used to load and store TransformationXML files.
Definition: TransformationXMLFile.h:56
const DataPoints & getDataPoints() const
Returns the data points.
void store(String filename, const TransformationDescription &transformation)
Stores the data in an TransformationXML file.
int main(int argc, const char **argv)
Definition: INIFileEditor.cpp:73
String x_weight_
x weighting
Definition: TransformationModel.h:165
double x_datum_max_
Definition: TransformationModel.h:167