|
ngscopeclient v0.2.2
|
A set of S-parameters. More...
#include <SParameters.h>
Public Types | |
| enum | FreqUnit { FREQ_HZ , FREQ_KHZ , FREQ_MHZ , FREQ_GHZ } |
| enum | ParameterFormat { FORMAT_MAG_ANGLE , FORMAT_DBMAG_ANGLE , FORMAT_REAL_IMAGINARY } |
Public Member Functions | |
| 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. | |
| size_t | GetNumPorts () const |
Protected Attributes | |
| std::map< SPair, SParameterVector * > | m_params |
| size_t | m_nports |
Friends | |
| class | TouchstoneParser |
A set of S-parameters.
| 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
| path | Output file name |
| format | Output data format |
| freqUnit | Frequency units for the generated file |