pub struct ErfOperation<'c> { /* private fields */ }
Expand description
An erf
operation. Computes gauss error function of input.
Gauss error function: $ erf(x) = \frac{2}{\sqrt(\pi)} \int_{0}^{x} e^{-t^2} ,dt $ For quantized integer data types, the TABLE operator should be used instead with the following definition. The erf_table has 513 entries each of 16-bit/8-bit precision and covering the input range -4.0 to +4.0 in steps of 1/64.
Implementations§
source§impl<'c> ErfOperation<'c>
impl<'c> ErfOperation<'c>
sourcepub fn as_operation(&self) -> &Operation<'c>
pub fn as_operation(&self) -> &Operation<'c>
Returns a generic operation.
sourcepub fn builder(
context: &'c Context,
location: Location<'c>
) -> ErfOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> ErfOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn output(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn input(&self) -> Result<Value<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<ErfOperation<'c>> for Operation<'c>
impl<'c> From<ErfOperation<'c>> for Operation<'c>
source§fn from(operation: ErfOperation<'c>) -> Self
fn from(operation: ErfOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for ErfOperation<'c>
impl<'c> !Send for ErfOperation<'c>
impl<'c> !Sync for ErfOperation<'c>
impl<'c> Unpin for ErfOperation<'c>
impl<'c> UnwindSafe for ErfOperation<'c>
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