40 std::complex<fvalue>
absGrad(
const std::vector<eis::DataPoint>& data,
size_t index);
49 fvalue
grad(
const std::vector<fvalue>& data,
const std::vector<fvalue>& omega,
size_t index);
58 std::complex<fvalue>
grad(
const std::vector<eis::DataPoint>& data,
size_t index);
66 fvalue
mean(
const std::vector<fvalue>& data);
74 std::complex<fvalue>
mean(
const std::vector<eis::DataPoint>& data);
82 fvalue
median(std::vector<fvalue> data);
90 std::complex<fvalue>
median(
const std::vector<eis::DataPoint>& data);
101 void difference(std::vector<eis::DataPoint>& a,
const std::vector<eis::DataPoint>& b);
110 std::vector<eis::DataPoint>
rescale(
const std::vector<eis::DataPoint>& data,
size_t outputSize);
144 void noise(std::vector<eis::DataPoint>& data,
double amplitude,
bool relative);
164 bool fvalueEq(fvalue a, fvalue b,
unsigned int ulp = 4);
178 const std::vector<eis::DataPoint>& data,
179 bool linearExtrapolation =
false);
Basic singular EIS data point.
Definition eistype.h:47
std::vector< eis::DataPoint > fitToFrequencies(std::vector< fvalue > omegas, const std::vector< eis::DataPoint > &data, bool linearExtrapolation=false)
This function resamples, extrapolates and interpolates to fit the data given to the frequencies also ...
std::vector< eis::DataPoint > rescale(const std::vector< eis::DataPoint > &data, size_t outputSize)
Resamples the data to the given amount of points.
fvalue median(std::vector< fvalue > data)
Calculates the median of the given data.
fvalue mean(const std::vector< fvalue > &data)
Calculates the mean of the given data.
void difference(std::vector< eis::DataPoint > &a, const std::vector< eis::DataPoint > &b)
Calculates the difference between two spectra.
fvalue maximumNyquistJump(const std::vector< eis::DataPoint > &data)
Finds the maximum distance between subsequent points in the data in the nyquist plane.
fvalue nyquistAreaVariance(const std::vector< eis::DataPoint > &data, eis::DataPoint *centroid=nullptr)
Calculates the variance of the distance of the data from a centroid in the nyquist plane.
void removeDuplicates(std::vector< eis::DataPoint > &data)
Removes duplicate data points from the data.
fvalue grad(const std::vector< fvalue > &data, const std::vector< fvalue > &omega, size_t index)
Calculates derivative at the given point of the data given.
bool fvalueEq(fvalue a, fvalue b, unsigned int ulp=4)
Checks two fvalues for equality.
void noise(std::vector< eis::DataPoint > &data, double amplitude, bool relative)
Adds white noise to the data.
fvalue pearsonCorrelation(const std::vector< eis::DataPoint > &data)
Calculates the Pearson correlation between the imaginary and the real part of the data.
std::complex< fvalue > absGrad(const std::vector< eis::DataPoint > &data, size_t index)
Calculates the element wise absolute gradient at the given point of the data given.
eisgenerator Copyright (C) 2021 Carl Klemm
Definition basicmath.h:26