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 Uninteresting regions are determined by taking the first and second derivative and removing the areas where these change very little. | |
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.
This function is not available when this library is compiled with fast 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 |