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

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.

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.