eisgenerator 1.0.x
|
Functions for normalization of spectra data . More...
Functions | |
void | eis::normalize (std::vector< eis::DataPoint > &data) |
Normalizes the data to [0,1]. | |
std::vector< eis::DataPoint > | eis::reduceRegion (const std::vector< eis::DataPoint > &data, fvalue gradThreshFactor=0.01, bool useSecondDeiv=false) |
Reduces the data by removing "uninteresting" regions. | |
void | eis::eraseSingularites (std::vector< eis::DataPoint > &data) |
Removes INF and NAN from the dataset by interpolating from neighboring points. | |
Functions for normalization of spectra data .
void eis::eraseSingularites | ( | std::vector< eis::DataPoint > & | data | ) |
Removes INF and NAN from the dataset by interpolating from neighboring points.
The universe implodes when function is used while this library is compiled with -ffast-math enabled.
As a side effect, this function caps spikes to +-INF to +-10 maximally.
data | The data to remove INF and NAN from. |
void eis::normalize | ( | std::vector< eis::DataPoint > & | data | ) |
Normalizes the data to [0,1].
data | The data to normalize. |
std::vector< eis::DataPoint > eis::reduceRegion | ( | const std::vector< eis::DataPoint > & | data, |
fvalue | gradThreshFactor = 0.01, | ||
bool | useSecondDeiv = false ) |
Reduces the data by removing "uninteresting" regions.
Uninteresting regions are determined by taking the first and second derivative and removing the areas where these change very little.
data | The data to reduce. |