Skip to main content

Wave

Enum Wave 

Source
pub enum Wave {
    Pulse(Vec<f64>),
    Sin(Vec<f64>),
    Exp(Vec<f64>),
    Pwl(Vec<f64>),
    Sffm(Vec<f64>),
    TrNoise(Vec<f64>),
    TrRandom(Vec<f64>),
}
Expand description

A transient source function: PULSE SIN EXP PWL SFFM, and ngspice-47’s transient-noise functions TRNOISE TRRANDOM, raw args. The noise functions are random: a source’s realization is fixed by .options seed and the source name (see docs/dune-core.md §Ruído transiente), and is added to the source’s DC value, as in ngspice.

Variants§

§

Pulse(Vec<f64>)

§

Sin(Vec<f64>)

§

Exp(Vec<f64>)

§

Pwl(Vec<f64>)

§

Sffm(Vec<f64>)

§

TrNoise(Vec<f64>)

TRNOISE(NA NT <NALPHA NAMP <RTSAM RTSCAPT RTSEMT>>): white gaussian noise of rms NA sampled every NT seconds (linear between samples), plus 1/f^NALPHA noise driven by white noise of rms NAMP, plus random telegraph noise of amplitude RTSAM with mean capture/emission times RTSCAPT/RTSEMT.

§

TrRandom(Vec<f64>)

TRRANDOM(TYPE TS <TD <PARAM1 <PARAM2>>>): a random value held for TS seconds from TD on — TYPE 1 uniform in [-PARAM1, PARAM1) + PARAM2, 2 gaussian (σ PARAM1, mean PARAM2), 3 exponential (mean PARAM1, offset PARAM2), 4 poisson (λ PARAM1, offset PARAM2); PARAM1 defaults to 1, PARAM2 to 0, and the value is PARAM2 up to TD.

Trait Implementations§

Source§

impl Clone for Wave

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Wave

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Forget for Wave

§

impl Freeze for Wave

§

impl Move for Wave

§

impl RefUnwindSafe for Wave

§

impl Send for Wave

§

impl Sync for Wave

§

impl Unpin for Wave

§

impl UnsafeUnpin for Wave

§

impl UnwindSafe for Wave

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ByRef<T> for T

Source§

fn by_ref(&self) -> &T

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Imply<T> for U
where T: ?Sized, U: ?Sized,

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.