eisgenerator 2.1.x
eis::ParameterPermutation Struct Reference

One assignment of a model's parameters that yields the same spectrum as the assignment it was derived from. More...

#include <symmetry.h>

Public Attributes

std::vector< int64_t > source
 Where each value came from.
std::vector< fvalue > parameters
 The resulting flat parameter vector, in eis::Model::getFlatParameters order.
std::string modelStr
 The model string carrying these parameter values.

Detailed Description

One assignment of a model's parameters that yields the same spectrum as the assignment it was derived from.

The circuit topology is never changed, only the values sitting in the parameter slots of the original model string. Two assignments are considered equivalent when the impedance of the whole circuit agrees at every probed frequency to within the tolerance passed to eis::Model::getEquivalentParameterPermutations.

Member Data Documentation

◆ source

std::vector<int64_t> eis::ParameterPermutation::source

Where each value came from.

source[i] is the index, into the model's flat parameter vector, of the parameter whose value ends up in slot i. It is -1 where the value is not copied but derived from a fit, for example the exponent of a CPE that has to be pinned to 1 in order to act as the capacitor it is replacing.