67 #ifndef OPENMS_MATH_MISC_MSNUMPRESS_H 68 #define OPENMS_MATH_MISC_MSNUMPRESS_H 75 #ifndef MS_NUMPRESS_THROW_ON_OVERFLOW 76 #define MS_NUMPRESS_THROW_ON_OVERFLOW true 82 namespace MSNumpress {
137 const size_t dataSize,
138 unsigned char *result,
148 const std::vector<double> &data,
149 std::vector<unsigned char> &result,
167 const unsigned char *data,
168 const size_t dataSize,
182 const std::vector<unsigned char> &data,
183 std::vector<double> &result);
202 const size_t dataSize,
203 unsigned char *result);
219 const unsigned char *data,
220 const size_t dataSize,
240 const size_t dataSize,
241 unsigned char *result);
250 const std::vector<double> &data,
251 std::vector<unsigned char> &result);
268 const unsigned char *data,
269 const size_t dataSize,
283 const std::vector<unsigned char> &data,
284 std::vector<double> &result);
308 const size_t dataSize,
309 unsigned char *result,
319 const std::vector<double> &data,
320 std::vector<unsigned char> &result,
336 const unsigned char *data,
337 const size_t dataSize,
349 const std::vector<unsigned char> &data,
350 std::vector<double> &result);
356 #endif // _MSNUMPRESS_HPP_ double optimalLinearFixedPoint(const double *data, size_t dataSize)
double optimalLinearFixedPointMass(const double *data, size_t dataSize, double mass_acc)
Definition: MSNumpress.h:79
size_t encodeSafe(const double *data, const size_t dataSize, unsigned char *result)
size_t encodeLinear(const double *data, const size_t dataSize, unsigned char *result, double fixedPoint)
size_t decodeSlof(const unsigned char *data, const size_t dataSize, double *result)
size_t encodePic(const double *data, const size_t dataSize, unsigned char *result)
size_t decodePic(const unsigned char *data, const size_t dataSize, double *result)
size_t encodeSlof(const double *data, const size_t dataSize, unsigned char *result, double fixedPoint)
size_t decodeLinear(const unsigned char *data, const size_t dataSize, double *result)
double optimalSlofFixedPoint(const double *data, size_t dataSize)
size_t decodeSafe(const unsigned char *data, const size_t dataSize, double *result)