eisdrt 1.0.x
Functions
Eigen API

API for use with Eigen applications . More...

Functions

template<typename fv >
Eigen::VectorX< fv > calcDrt (Eigen::VectorX< std::complex< fv > > &impedanceSpectra, Eigen::VectorX< fv > &omegaTensor, FitMetrics &fm, const FitParameters &fp, fv *rSeries=nullptr)
 Calculates the drt using Eigen datatypes.
 
template<typename fv >
Eigen::VectorX< std::complex< fv > > calcImpedance (const Eigen::VectorX< fv > &drt, fv rSeries, const Eigen::VectorX< fv > &omegaVector)
 Calculates impedance from drt using Eigen datatypes.
 

Detailed Description

API for use with Eigen applications .

Calculates drts with Eigen datatypes.

Function Documentation

◆ calcDrt()

template<typename fv >
Eigen::VectorX< fv > calcDrt ( Eigen::VectorX< std::complex< fv > > & impedanceSpectra,
Eigen::VectorX< fv > & omegaTensor,
FitMetrics & fm,
const FitParameters & fp,
fv * rSeries = nullptr )

Calculates the drt using Eigen datatypes.

Template Parameters
fvThe precision to be used, either double or float.
Parameters
impedanceSpectraA vector with the complex impedances of your experiment.
omegaTensorA vector with the omega values that the impedances where measured at.
fmA fit metrics struct where this function returns information on the fit acquired.
fpA struct with fit parameters.
rSeriesAn optional parameter where the series resistance is stored.
Returns
A vector with the drt values.

◆ calcImpedance()

template<typename fv >
Eigen::VectorX< std::complex< fv > > calcImpedance ( const Eigen::VectorX< fv > & drt,
fv rSeries,
const Eigen::VectorX< fv > & omegaVector )

Calculates impedance from drt using Eigen datatypes.

Template Parameters
fvThe precision to be used, either double or float.
Parameters
drtThe drt to calculate impedance from.
omegaVectorA vector with the omega values that the impedances where measured at.
rSeriesAn optional parameter where the series resistance is stored.
Returns
A vector with the drt values.