A set of S-parameters.
More...
#include <SParameters.h>
|
enum | FreqUnit { FREQ_HZ
, FREQ_KHZ
, FREQ_MHZ
, FREQ_GHZ
} |
|
enum | ParameterFormat { FORMAT_MAG_ANGLE
, FORMAT_DBMAG_ANGLE
, FORMAT_REAL_IMAGINARY
} |
|
|
void | Clear () |
| Clears out current S-parameters before reloading them.
|
|
void | Allocate (int nports=2) |
|
bool | empty () const |
|
SParameterPoint | SamplePoint (int to, int from, float frequency) |
| Sample a single point from a single S-parameter.
|
|
SParameterVector & | operator[] (SPair pair) |
|
const SParameterVector & | operator[] (SPair pair) const |
|
void | SaveToFile (const std::string &path, ParameterFormat format=FORMAT_MAG_ANGLE, FreqUnit freqUnit=FREQ_GHZ) |
| Serializes a S-parameter model to a Touchstone file. More...
|
|
size_t | GetNumPorts () const |
|
◆ SaveToFile()
void SParameters::SaveToFile |
( |
const std::string & |
path, |
|
|
ParameterFormat |
format = FORMAT_MAG_ANGLE , |
|
|
FreqUnit |
freqUnit = FREQ_GHZ |
|
) |
| |
Serializes a S-parameter model to a Touchstone file.
For now, assumes full 2 port
- Parameters
-
path | Output file name |
format | Output data format |
freqUnit | Frequency units for the generated file |
The documentation for this class was generated from the following files: