Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

sdata Class Reference

sdata holds linear circuit data, including scattering matrix, noise correlation matrix, and source vector. More...

#include <sdata.h>

Inheritance diagram for sdata::

ampdata List of all members.

Public Methods

int size () const
v_index_mode mode () const
double SdB (int out, int in) const
 Get a scattering parameter in decibels. More...

double tn (int out, int in) const
 Get the noise temperature in standard units. More...

double NF (int out, int in) const
 Get the noise figure in decibels. More...

 sdata (int n=0, v_index_mode=Index_1)
 Construct data for a device with a known number of ports and index mode. More...

 sdata (const sdata &sd)
 Copy constructor. More...

 sdata (const sdata &sd, double z0)
 Copy constructor, converting data to a new normalization impedance. More...

 sdata (const zdata &zd, double z0=double(device::Z0))
 Convert data from the impedance representation to the wave representation. More...

 sdata (const ydata &yd, double z0=double(device::Z0))
 Convert data from the admittance representation to the wave representation. More...

 sdata (const ydata_ptr &, double z0=double(device::Z0))
 Convert data from the admittance representation to the wave representation. More...

sdata& resize (int)
 Change the size of an existing object. More...

sdata& reindex (v_index_mode m=Index_1)
 Change the indexing of an existing object. More...

double get_znorm () const
 Get the normalization impedance. More...

sdata& set_znorm (double z)
 Set the normalization impedance. More...

sdata& change_norm (double new_z0=double(device::Z0))
 Change the normalization impedance. More...

sdata& passive_noise (double freq, double temp)
 Calculate the noise matrix for a passive element using the scattering matrix, temperature, and frequency. More...


Public Attributes

Matrix S
 The scattering matrix. More...

Matrix C
 The noise correlation matrix. More...

Vector B
 The source vector, in square root of power. More...


Protected Attributes

double z_norm
 The characteristic impedance that was used. More...


Detailed Description

sdata holds linear circuit data, including scattering matrix, noise correlation matrix, and source vector.

Definition at line 75 of file sdata.h.


Constructor & Destructor Documentation

sdata::sdata ( int s = 0,
v_index_mode t = Index_1 ) [explicit]
 

Construct data for a device with a known number of ports and index mode.

Parameters:
n   the number of ports, defaults to 0

Definition at line 88 of file sdata.cc.

sdata::sdata ( const sdata & sd )
 

Copy constructor.

Definition at line 94 of file sdata.cc.

sdata::sdata ( const sdata & sd,
double z0 )
 

Copy constructor, converting data to a new normalization impedance.

Parameters:
sd   data to be copied
z0   the new normalization impedance, z0 > 0

Definition at line 98 of file sdata.cc.

sdata::sdata ( const zdata & zd,
double z0 = double(device::Z0) )
 

Convert data from the impedance representation to the wave representation.

Definition at line 102 of file sdata.cc.

sdata::sdata ( const ydata & yd,
double z0 = double(device::Z0) )
 

Convert data from the admittance representation to the wave representation.

Definition at line 132 of file sdata.cc.

sdata::sdata ( const ydata_ptr & yp,
double z0 = double(device::Z0) )
 

Convert data from the admittance representation to the wave representation.

Definition at line 162 of file sdata.cc.


Member Function Documentation

double sdata::NF ( int i,
int j ) const
 

Get the noise figure in decibels.

Parameters:
out   the output port
in   the input port
Returns:
the noise figure referred to the input in decibels

Definition at line 221 of file sdata.cc.

double sdata::SdB ( int i,
int j ) const
 

Get a scattering parameter in decibels.

Parameters:
out   the output port (row in the S matrix)
in   the input port (column in the S matrix)
Returns:
S parameter in dB for in -> out

Definition at line 211 of file sdata.cc.

sdata & sdata::change_norm ( double new_z0 = double(device::Z0) )
 

Change the normalization impedance.

If old z_norm == 0, then do nothing.

Parameters:
new_z0   the new normalization impedance.

Definition at line 238 of file sdata.cc.

Referenced by S_interp::add_SC(), and sdata().

double sdata::get_znorm ( ) const [inline]
 

Get the normalization impedance.

Returns:
the normalization impedance

Definition at line 180 of file sdata.h.

Referenced by S_interp::add_S(), S_interp::add_SC(), circuit::calc(), connection::calc_block(), connection::calc_inter(), connection::calc_intra(), and deembed::scat_to_abcd().

v_index_mode sdata::mode ( ) const [inline]
 

Definition at line 95 of file sdata.h.

Referenced by S_interp::add_SC(), data_ptr_nport::mode(), nport::mode(), and mixer::analyzer::rebuild().

sdata & sdata::passive_noise ( double freq,
double Temp )
 

Calculate the noise matrix for a passive element using the scattering matrix, temperature, and frequency.

The noise correlation matrix C is calculated as

Definition at line 269 of file sdata.cc.

Referenced by S_to_sdata(), and compute_passive_noise().

sdata & sdata::reindex ( v_index_mode m = Index_1 ) [inline]
 

Change the indexing of an existing object.

Definition at line 172 of file sdata.h.

sdata & sdata::resize ( int n )
 

Change the size of an existing object.

Definition at line 200 of file sdata.cc.

Referenced by mixer::balancer::rebuild(), and mixer::analyzer::rebuild().

sdata & sdata::set_znorm ( double z )
 

Set the normalization impedance.

Must have z>=0 (z==0 is special; see change_norm)

Parameters:
z   the new normalization impedance.

Definition at line 226 of file sdata.cc.

Referenced by S_to_sdata(), S_interp::add_SC(), and S_interp::fill().

int sdata::size ( ) const [inline]
 

Returns:
the number of ports and thus size of the matrices

Definition at line 92 of file sdata.h.

Referenced by ampdata::F_min(), ampdata::Rn(), S_interp::add_SC(), circuit::calc(), connection::calc_block(), connection::calc_inter(), connection::calc_intra(), ampdata::center(), ampdata::delta(), ampdata::gamma_opt(), ampdata::k(), ampdata::noise_measure(), ampdata::radius(), data_ptr_nport::size(), nport::size(), and ampdata::t_min().

double sdata::tn ( int i,
int j ) const
 

Get the noise temperature in standard units.

Parameters:
out   the output port (row in the S matrix)
in   the input port (column in the S matrix)
Returns:
the noise temperature referred to the input

Definition at line 216 of file sdata.cc.

Referenced by NF().


Member Data Documentation

Vector sdata::B
 

The source vector, in square root of power.

Definition at line 89 of file sdata.h.

Matrix sdata::C
 

The noise correlation matrix.

Definition at line 86 of file sdata.h.

Matrix sdata::S
 

The scattering matrix.

Definition at line 83 of file sdata.h.

double sdata::z_norm [protected]
 

The characteristic impedance that was used.

Definition at line 79 of file sdata.h.


The documentation for this class was generated from the following files:

Please direct comments and corrections to supermix@submm.caltech.edu
Go to the supermix home page
Generated by doxygen1.2.7