eisgenerator 1.0.x
Functions
Normalization

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::DataPointeis::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.
 

Detailed Description

Functions for normalization of spectra data.

Function Documentation

◆ eraseSingularites()

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

Parameters
datathe data to remove INF and NAN from

◆ normalize()

void eis::normalize ( std::vector< eis::DataPoint > &  data)

Normalizes the data to [0,1].

Parameters
datathe data to normalize

◆ reduceRegion()

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.

Parameters
datathe data to reduce
Returns
the reduced data