Trait autd3_core::gain::Gain
source · pub trait Gain<T: Transducer> {
// Required method
fn calc(
&mut self,
geometry: &Geometry<T>
) -> Result<Vec<Drive>, AUTDInternalError>;
// Provided method
fn transform<F: Fn(&T) -> Drive + Sync + Send>(
geometry: &Geometry<T>,
f: F
) -> Vec<Drive>
where Self: Sized { ... }
}Expand description
Gain contains amplitude and phase of each transducer in the AUTD. Note that the amplitude means duty ratio of Pulse Width Modulation, respectively.