pub struct Exposure { /* private fields */ }Expand description
A list of shots on a PSF, ready to evaluate.
Implementations§
Source§impl Exposure
impl Exposure
Sourcepub fn new(
psf: GaussianPsf,
shots: Vec<Shot>,
blur_m: f64,
) -> Result<Self, ExposureError>
pub fn new( psf: GaussianPsf, shots: Vec<Shot>, blur_m: f64, ) -> Result<Self, ExposureError>
An exposure of shots on psf with a global beam blur blur_m
(b in exp(-r²/b²), 0 for none) and DEFAULT_SUBSAMPLES.
Sourcepub fn with_subsamples(
psf: GaussianPsf,
shots: Vec<Shot>,
blur_m: f64,
subsamples: usize,
) -> Result<Self, ExposureError>
pub fn with_subsamples( psf: GaussianPsf, shots: Vec<Shot>, blur_m: f64, subsamples: usize, ) -> Result<Self, ExposureError>
As Exposure::new, with subsamples cells per axis for shaped
spots (at least 1).
Sourcepub fn psf(&self) -> &GaussianPsf
pub fn psf(&self) -> &GaussianPsf
The PSF.
Sourcepub fn subsamples(&self) -> usize
pub fn subsamples(&self) -> usize
Sub-samples per axis of a shaped spot.
Sourcepub fn dose_at(&self, x_m: f64, y_m: f64) -> f64
pub fn dose_at(&self, x_m: f64, y_m: f64) -> f64
The deposited energy density at (x, y), eV/m².
Sourcepub fn dose_at_points(&self, points: &[[f64; 2]]) -> Vec<f64>
pub fn dose_at_points(&self, points: &[[f64; 2]]) -> Vec<f64>
The dose at each of points, in order. Parallel over points; the
result does not depend on the thread count.
Sourcepub fn dose_on_grid(&self, grid: &Grid) -> Result<DoseGrid, ExposureError>
pub fn dose_on_grid(&self, grid: &Grid) -> Result<DoseGrid, ExposureError>
The dose on a grid. Parallel over grid points; the result does not depend on the thread count.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Exposure
impl RefUnwindSafe for Exposure
impl Send for Exposure
impl Sync for Exposure
impl Unpin for Exposure
impl UnsafeUnpin for Exposure
impl UnwindSafe for Exposure
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more