ProteoWizard
Namespaces | Functions
MSNumpress.hpp File Reference
#include "pwiz/utility/misc/Export.hpp"
#include <cstddef>
#include <vector>

Go to the source code of this file.

Namespaces

 pwiz
 
 pwiz::msdata
 
 pwiz::msdata::MSNumpress
 

Functions

double PWIZ_API_DECL pwiz::msdata::MSNumpress::optimalLinearFixedPoint (const double *data, size_t dataSize)
 
size_t PWIZ_API_DECL pwiz::msdata::MSNumpress::encodeLinear (const double *data, const size_t dataSize, unsigned char *result, double fixedPoint)
 Encodes the doubles in data by first using a. More...
 
void PWIZ_API_DECL pwiz::msdata::MSNumpress::encodeLinear (const std::vector< double > &data, std::vector< unsigned char > &result, double fixedPoint)
 Calls lower level encodeLinear while handling vector sizes appropriately. More...
 
size_t PWIZ_API_DECL pwiz::msdata::MSNumpress::decodeLinear (const unsigned char *data, const size_t dataSize, double *result)
 Decodes data encoded by encodeLinear. More...
 
void PWIZ_API_DECL pwiz::msdata::MSNumpress::decodeLinear (const std::vector< unsigned char > &data, std::vector< double > &result)
 Calls lower level decodeLinear while handling vector sizes appropriately. More...
 
size_t PWIZ_API_DECL pwiz::msdata::MSNumpress::encodePic (const double *data, const size_t dataSize, unsigned char *result)
 Encodes ion counts by simply rounding to the nearest 4 byte integer, and compressing each integer with encodeInt. More...
 
void PWIZ_API_DECL pwiz::msdata::MSNumpress::encodePic (const std::vector< double > &data, std::vector< unsigned char > &result)
 Calls lower level encodePic while handling vector sizes appropriately. More...
 
void PWIZ_API_DECL pwiz::msdata::MSNumpress::decodePic (const std::vector< unsigned char > &data, std::vector< double > &result)
 Decodes data encoded by encodePic. More...
 
size_t PWIZ_API_DECL pwiz::msdata::MSNumpress::decodePic (const unsigned char *data, const size_t dataSize, double *result)
 Calls lower level decodePic while handling vector sizes appropriately. More...
 
double PWIZ_API_DECL pwiz::msdata::MSNumpress::optimalSlofFixedPoint (const double *data, size_t dataSize)
 
size_t PWIZ_API_DECL pwiz::msdata::MSNumpress::encodeSlof (const double *data, const size_t dataSize, unsigned char *result, double fixedPoint)
 Encodes ion counts by taking the natural logarithm, and storing a fixed point representation of this. More...
 
void PWIZ_API_DECL pwiz::msdata::MSNumpress::encodeSlof (const std::vector< double > &data, std::vector< unsigned char > &result, double fixedPoint)
 Calls lower level encodeSlof while handling vector sizes appropriately. More...
 
size_t PWIZ_API_DECL pwiz::msdata::MSNumpress::decodeSlof (const unsigned char *data, const size_t dataSize, double *result)
 Decodes data encoded by encodeSlof. More...
 
void PWIZ_API_DECL pwiz::msdata::MSNumpress::decodeSlof (const std::vector< unsigned char > &data, std::vector< double > &result)
 Calls lower level decodeSlof while handling vector sizes appropriately. More...