Struct num_complex::ComplexDistribution [−][src]
pub struct ComplexDistribution<Re, Im = Re> { /* fields omitted */ }
A generic random value distribution for complex numbers.
Methods
impl<Re, Im> ComplexDistribution<Re, Im>
[src]
impl<Re, Im> ComplexDistribution<Re, Im>
pub fn new(re: Re, im: Im) -> Self
[src]
pub fn new(re: Re, im: Im) -> Self
Creates a complex distribution from independent distributions of the real and imaginary parts.
Trait Implementations
impl<Re: Clone, Im: Clone> Clone for ComplexDistribution<Re, Im>
[src]
impl<Re: Clone, Im: Clone> Clone for ComplexDistribution<Re, Im>
fn clone(&self) -> ComplexDistribution<Re, Im>
[src]
fn clone(&self) -> ComplexDistribution<Re, Im>
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: Copy, Im: Copy> Copy for ComplexDistribution<Re, Im>
[src]
impl<Re: Copy, Im: Copy> Copy for ComplexDistribution<Re, Im>
impl<Re: Debug, Im: Debug> Debug for ComplexDistribution<Re, Im>
[src]
impl<Re: Debug, Im: Debug> Debug for ComplexDistribution<Re, Im>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
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>,
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Complex<T>
[src]
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Complex<T>
Generate a random value of T
, using rng
as the source of randomness.
fn sample_iter<R>(&'a self, rng: &'a mut R) -> DistIter<'a, Self, R, T> where
R: Rng,
[src]
fn sample_iter<R>(&'a self, rng: &'a mut R) -> DistIter<'a, Self, R, T> where
R: Rng,
Create an iterator that generates random values of T
, using rng
as the source of randomness. Read more
Auto Trait Implementations
impl<Re, Im> Send for ComplexDistribution<Re, Im> where
Im: Send,
Re: Send,
impl<Re, Im> Send for ComplexDistribution<Re, Im> where
Im: Send,
Re: Send,
impl<Re, Im> Sync for ComplexDistribution<Re, Im> where
Im: Sync,
Re: Sync,
impl<Re, Im> Sync for ComplexDistribution<Re, Im> where
Im: Sync,
Re: Sync,