pub struct AmplifierPoint {
pub input_dbm: f64,
pub output_dbm: f64,
pub gain_db: f64,
pub phase_shift_deg: Option<f64>,
}Expand description
A single point from a combined AM-AM + AM-PM sweep.
§Examples
use gainlineup::{Block, AmplifierModel};
let block = Block {
name: "PA".to_string(),
gain_db: 20.0,
noise_figure_db: 5.0,
output_p1db_dbm: Some(30.0),
output_ip3_dbm: None,
};
let model = AmplifierModel::with_am_pm(&block, 5.0);
let sweep = model.am_am_am_pm_sweep(-30.0, -30.0, 1.0);
let point = &sweep[0];
assert!((point.input_dbm - (-30.0)).abs() < 0.01);
assert!((point.gain_db - 20.0).abs() < 0.01);Fields§
§input_dbm: f64Input power (dBm).
output_dbm: f64Output power (dBm).
gain_db: f64Power gain (dB).
phase_shift_deg: Option<f64>AM-PM phase shift (degrees), if AM-PM coefficient is set.
Trait Implementations§
Source§impl Clone for AmplifierPoint
impl Clone for AmplifierPoint
Source§fn clone(&self) -> AmplifierPoint
fn clone(&self) -> AmplifierPoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AmplifierPoint
impl Debug for AmplifierPoint
Auto Trait Implementations§
impl Freeze for AmplifierPoint
impl RefUnwindSafe for AmplifierPoint
impl Send for AmplifierPoint
impl Sync for AmplifierPoint
impl Unpin for AmplifierPoint
impl UnsafeUnpin for AmplifierPoint
impl UnwindSafe for AmplifierPoint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more