Struct vecmat::complex::ComplexDistribution [−][src]
pub struct ComplexDistribution<Re, Im = Re> { /* fields omitted */ }
A generic random value distribution for complex numbers.
Implementations
impl<Re, Im> ComplexDistribution<Re, Im>
[src]
impl<Re, Im> ComplexDistribution<Re, Im>
[src]pub fn new(re: Re, im: Im) -> ComplexDistribution<Re, Im>
[src]
pub fn new(re: Re, im: Im) -> ComplexDistribution<Re, Im>
[src]Creates a complex distribution from independent distributions of the real and imaginary parts.
Trait Implementations
impl<Re, Im> Clone for ComplexDistribution<Re, Im> where
Re: Clone,
Im: Clone,
[src]
impl<Re, Im> Clone for ComplexDistribution<Re, Im> where
Re: Clone,
Im: Clone,
[src]pub fn clone(&self) -> ComplexDistribution<Re, Im>
[src]
pub fn clone(&self) -> ComplexDistribution<Re, Im>
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl<Re, Im> Debug for ComplexDistribution<Re, Im> where
Re: Debug,
Im: Debug,
[src]
impl<Re, Im> Debug for ComplexDistribution<Re, Im> where
Re: Debug,
Im: Debug,
[src]impl<T, Re, Im> Distribution<Complex<T>> for ComplexDistribution<Re, Im> where
T: Num + Clone,
Re: Distribution<T>,
Im: Distribution<T>,
[src]
impl<T, Re, Im> Distribution<Complex<T>> for ComplexDistribution<Re, Im> where
T: Num + Clone,
Re: Distribution<T>,
Im: Distribution<T>,
[src]pub fn sample<R>(&self, rng: &mut R) -> Complex<T> where
R: Rng + ?Sized,
[src]
pub fn sample<R>(&self, rng: &mut R) -> Complex<T> where
R: Rng + ?Sized,
[src]Generate a random value of T
, using rng
as the source of randomness.
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
[src]
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
[src]Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
impl<Re, Im> Copy for ComplexDistribution<Re, Im> where
Re: Copy,
Im: Copy,
[src]
Re: Copy,
Im: Copy,
Auto Trait Implementations
impl<Re, Im> RefUnwindSafe for ComplexDistribution<Re, Im> where
Im: RefUnwindSafe,
Re: RefUnwindSafe,
Im: RefUnwindSafe,
Re: RefUnwindSafe,
impl<Re, Im> Send for ComplexDistribution<Re, Im> where
Im: Send,
Re: Send,
Im: Send,
Re: Send,
impl<Re, Im> Sync for ComplexDistribution<Re, Im> where
Im: Sync,
Re: Sync,
Im: Sync,
Re: Sync,
impl<Re, Im> Unpin for ComplexDistribution<Re, Im> where
Im: Unpin,
Re: Unpin,
Im: Unpin,
Re: Unpin,
impl<Re, Im> UnwindSafe for ComplexDistribution<Re, Im> where
Im: UnwindSafe,
Re: UnwindSafe,
Im: UnwindSafe,
Re: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,